ark::rtsp::RtpStreamParser

Defined in header “ark/rtsp/rtp_parser.hh”.


Feed this incoming packets containing RTP data, and this will handle reorganization, validation, and basic-decoding of different streams.

It only supports video at the moment, and will return a stream of images based on what the RTP stream is sending.

Methods

  • RtpStreamParser(image::ImageDataFormat data_format)
    Constructs a new stream parser, created an RTP decoder based on the given image format.

  • RtpStreamParser(AbstractRtpDecoderPtr decoder)
    Constructs a new stream parser, using the given RTP decoder for processing data.

  • ~RtpStreamParser()
    Destructor, to clean up implementation details.

  • RtpStreamParserStatistics statistics()
    Returns statistics related to this parser.

  • std::vector< image::Image > add_packet(const comms::UdpPacket & udp_packet)
    Adds a packet for consideration into the processing stream. Returns zero or more processed images.