| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface into RtspFile class. Handles reading and writing to audio file and audio header. Container for parameters used by rtp processor.
Constructor Summary | |
RtspFileHandler(const Data & filename, const Data & contentBase) Opens the specified descriptor file. |
Destructor Summary | |
virtual | ~RtspFileHandler() deconstructor |
Method Summary | |
bool | closeAudioFile() Closes audio file. |
const Data | filename() Return name of audio file. |
const Data | filenameUrl() return contentbase(rtsp file path) + filename + extension |
const int | ftIndex() codec parameters index |
const long | length() Return length of audio file in ms, -1 if unknown. |
bool | loadAudioHeader() Builds myRtspSdp from audio header or *.sdp file. |
bool | openAudioFile(const bool mode, const int packetSize) Open file with given mode and sizing. |
const int | packetCodec() rtp payload codec |
const int | packetInterval() packet interval in milliseconds |
const int | packetSamples() samples per rtp packet |
const int | packetSize() rtp packet size in bytes |
int | read(void * data, size_t max, unsigned short * pSeqNum, unsigned int * pTS) Read from audio file. |
RtspSdp & | readAudioHeader() Read sdp block from audio header or *.sdp file. |
long | seek(long npt) Seek read/write pointer into file. |
int | write(void * data, size_t max, unsigned short uSeqNum, unsigned int uTS) Write to audio file. |
bool | writeAudioHeader(const Data & sdp) Write sdp block into audio header and/or *.sdp file. |
Constructor Detail |
public RtspFileHandler(const Data & filename, const Data & contentBase)
Method Detail |
public virtual ~RtspFileHandler()
Method Detail |
public bool closeAudioFile()
public const Data filename()
public const Data filenameUrl()
public const int ftIndex()
public const long length()
public bool loadAudioHeader()
public bool openAudioFile(const bool mode, const int packetSize)
false
read, true>/code>write- packetSize - bytes per packet
- Returns: false on failure
public const int packetCodec()
public const int packetInterval()
public const int packetSamples()
public const int packetSize()
public int read(void * data, size_t max, unsigned short * pSeqNum, unsigned int * pTS)
public RtspSdp & readAudioHeader()
public long seek(long npt)
public int write(void * data, size_t max, unsigned short uSeqNum, unsigned int uTS)
public bool writeAudioHeader(const Data & sdp)
Association Links |
to Class RtspFile
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |