MP3 format for RTSP https://en.wikipedia.org/wiki/RTP_payload_formats.
More...
#include <RTSPFormat.h>
|
| RTSPFormatMP3 (AudioEncoder &encoder) |
| Provide dynamic frame duration if encoder is available.
|
|
AudioInfo | audioInfo () |
| Provides the AudioInfo.
|
|
void | begin (AudioInfo info) override |
|
virtual int | convert (void *data, int sampleCount) |
|
AudioInfo | defaultConfig () |
|
const char * | format (char *buffer, int len) override |
|
virtual int | fragmentSize () |
| Fragment (=write) size in bytes.
|
|
virtual const char * | name () |
|
virtual int | readHeader (uint8_t *data) |
| Optional header: e.g. rfc2250.
|
|
int | readHeader (unsigned char *buffer) override |
| rfc2250 header before the playload
|
|
int | rtpPayloadType () override |
| default dynamic
|
|
void | setEncoder (AudioEncoder &encoder) |
|
void | setFragmentSize (int fragmentSize) |
| Defines the fragment size in bytes.
|
|
void | setName (const char *name) |
| Defines the name of the stream.
|
|
void | setTimerPeriodUs (int period) |
| Defines the timer period in microseconds.
|
|
void | setUseRfc2250Header (bool enable) |
| Optional: Configure RFC2250 header usage (default: no-op)
|
|
int | timerPeriodUs () |
| Timer period in microseconds.
|
|
virtual int | timestampIncrement () |
| Fragment size in samples.
|
|
bool | useRfc2250Header () const override |
|
|
AudioInfo | cfg {16000, 1, 16} |
|
int | fragment_size = 640 |
|
const char * | name_str = "RTSPAudioTools" |
|
AudioEncoder * | p_encoder = nullptr |
|
const char * | STD_URL_PRE_SUFFIX = "trackID" |
|
int | timer_period_us = 10000 |
|
bool | use_rfc2250_header_ = false |
|
◆ audioInfo()
◆ begin()
◆ convert()
virtual int convert |
( |
void * |
data, |
|
|
int |
sampleCount |
|
) |
| |
|
inlinevirtualinherited |
◆ defaultConfig()
◆ format()
const char * format |
( |
char * |
buffer, |
|
|
int |
len |
|
) |
| |
|
inlineoverridevirtual |
◆ rtpPayloadType()
◆ setUseRfc2250Header()
void setUseRfc2250Header |
( |
bool |
| ) |
|
|
inlinevirtual |
Optional: Configure RFC2250 header usage (default: no-op)
Reimplemented from RTSPFormat.
◆ timerPeriodUs()
Timer period in microseconds.
Reimplemented from RTSPFormat.
◆ timestampIncrement()
virtual int timestampIncrement |
( |
| ) |
|
|
inlinevirtual |
Fragment size in samples.
Reimplemented from RTSPFormat.
◆ useRfc2250Header()
bool useRfc2250Header |
( |
| ) |
const |
|
inlineoverridevirtual |
The documentation for this class was generated from the following file: