#include <media.hpp>
◆ AudioMediaRecorder()
pj::AudioMediaRecorder::AudioMediaRecorder |
( |
| ) |
|
◆ ~AudioMediaRecorder()
virtual pj::AudioMediaRecorder::~AudioMediaRecorder |
( |
| ) |
|
|
virtual |
Destructor. This will unregister the recorder port from the conference bridge.
◆ createRecorder()
void pj::AudioMediaRecorder::createRecorder |
( |
const string & |
file_name, |
|
|
unsigned |
enc_type = 0 , |
|
|
long |
max_size = 0 , |
|
|
unsigned |
options = 0 |
|
) |
| |
throw | ( | Error |
| ) | | |
Create a file recorder, and automatically connect this recorder to the conference bridge. The recorder currently supports recording WAV file. The type of the recorder to use is determined by the extension of the file (e.g. ".wav").
- Parameters
-
file_name | Output file name. The function will determine the default format to be used based on the file extension. Currently ".wav" is supported on all platforms. |
enc_type | Optionally specify the type of encoder to be used to compress the media, if the file can support different encodings. This value must be zero for now. |
max_size | Maximum file size. Specify zero or -1 to remove size limitation. This value must be zero or -1 for now. |
options | Optional options, which can be used to specify the recording file format. Supported options are PJMEDIA_FILE_WRITE_PCM, PJMEDIA_FILE_WRITE_ALAW, and PJMEDIA_FILE_WRITE_ULAW. Default is zero or PJMEDIA_FILE_WRITE_PCM. |
◆ typecastFromAudioMedia()
Warning: deprecated and will be removed in future release.
Typecast from base class AudioMedia. This is useful for application written in language that does not support downcasting such as Python.
- Parameters
-
media | The object to be downcasted |
- Returns
- The object as AudioMediaRecorder instance
The documentation for this class was generated from the following file: