29 #ifndef OPAL_OPAL_AUDIORECORD_H
30 #define OPAL_OPAL_AUDIORECORD_H
37 #include <ptlib/vconvert.h>
38 #include <ptlib/pfactory.h>
58 typedef PFactory<OpalRecordManager, PFilePathString>
Factory;
114 const char * audioFormat = NULL,
116 const char * videoFormat = NULL,
117 unsigned width = PVideoFrameInfo::CIFWidth,
118 unsigned height = PVideoFrameInfo::CIFHeight,
121 bool pushThreads =
true
139 bool Open(
const PFilePath & fn);
143 bool Open(
const PFilePath & fn,
bool mono);
147 bool Open(
const PFilePath & fn,
const Options & options);
151 virtual bool IsOpen()
const = 0;
157 virtual bool Close() = 0;
162 const PString & strmId,
169 const PString & strmId
180 const PString & strmId,
193 const PString & strmId,
210 virtual bool OpenFile(
const PFilePath & fn) = 0;
215 #endif // OPAL_HAS_MIXER
217 #endif // OPAL_OPAL_AUDIORECORD_H
VideoMode
Definition: recording.h:61
VideoMode m_videoMixing
Mode for how incoming video is mixed.
Definition: recording.h:96
bool m_pushThreads
Indicate push threads are to be started an operate in background.
Definition: recording.h:107
Definition: recording.h:74
virtual bool IsOpen() const =0
Definition: recording.h:70
unsigned m_videoHeight
Video mixer buffer heigth. Inputs are scaled accordingly.
Definition: recording.h:103
Options(bool stereo=true, VideoMode videoMixing=eSideBySideLetterbox, const char *audioFormat=NULL, const char *videoFormat=NULL, unsigned width=PVideoFrameInfo::CIFWidth, unsigned height=PVideoFrameInfo::CIFHeight, unsigned rate=15, bool pushThreads=true)
Definition: recording.h:109
virtual bool OnPushVideo()=0
bool Open(const PFilePath &fn)
Definition: recording.h:62
Definition: recording.h:79
virtual unsigned GetPushAudioPeriodMS() const =0
PString m_videoFormat
Definition: recording.h:97
Options m_options
Definition: recording.h:212
virtual bool CloseStream(const PString &strmId)=0
virtual unsigned GetPushVideoPeriodMS() const =0
unsigned m_videoWidth
Video mixer buffer width. Inputs are scaled accordingly.
Definition: recording.h:102
const Options & GetOptions() const
Definition: recording.h:200
PFactory< OpalRecordManager, PFilePathString > Factory
Definition: recording.h:58
PINDEX m_audioBufferSize
Definition: recording.h:92
PString m_audioFormat
Definition: recording.h:87
void SetOptions(const Options &options)
Definition: recording.h:204
Unsupported.
Definition: recording.h:78
Definition: recording.h:49
virtual bool WriteVideo(const PString &strmId, const RTP_DataFrame &rtp)=0
Definition: recording.h:66
virtual bool OpenFile(const PFilePath &fn)=0
bool m_stereo
Definition: recording.h:85
virtual bool OnPushAudio()=0
unsigned m_videoRate
Definition: recording.h:104
Definition: recording.h:84
virtual bool WriteAudio(const PString &strmId, const RTP_DataFrame &rtp)=0
virtual bool OpenStream(const PString &strmId, const OpalMediaFormat &format)=0