Audio/Video recorder. More...
Go to the source code of this file.
Data Structures | |
struct | janus_recorder |
Structure that represents a recorder. More... |
Typedefs | |
typedef struct janus_recorder | janus_recorder |
Structure that represents a recorder. |
Functions | |
janus_recorder * | janus_recorder_create (const char *dir, int video, const char *filename) |
Create a new recorder. | |
int | janus_recorder_save_frame (janus_recorder *recorder, char *buffer, int length) |
Save an RTP frame in the recorder. | |
int | janus_recorder_close (janus_recorder *recorder) |
Close the recorder. | |
int | janus_recorder_free (janus_recorder *recorder) |
Free the recorder resources. |
Audio/Video recorder.
Audio/Video recorder (headers)
Implementation of a simple recorder utility that plugins can make use of to record audio/video frames to a Janus file. This file just saves RTP frames in a structured way, so that they can be post-processed later on to get a valid container file (e.g., a .opus file for Opus audio or a .webm file for VP8 video) and keep things simpler on the plugin and core side.
typedef struct janus_recorder janus_recorder |
Structure that represents a recorder.
int janus_recorder_close | ( | janus_recorder * | recorder | ) |
Close the recorder.
[in] | recorder | The janus_recorder instance to close |
janus_recorder* janus_recorder_create | ( | const char * | dir, |
int | video, | ||
const char * | filename | ||
) |
Create a new recorder.
[in] | dir | Path of the directory to save the recording into (will try to create it if it doesn't exist) |
[in] | video | If this recorder is for video or audio |
[in] | filename | Filename to use for the recording |
int janus_recorder_free | ( | janus_recorder * | recorder | ) |
Free the recorder resources.
[in] | recorder | The janus_recorder instance to free |
int janus_recorder_save_frame | ( | janus_recorder * | recorder, |
char * | buffer, | ||
int | length | ||
) |
Save an RTP frame in the recorder.
[in] | recorder | The janus_recorder instance to save the frame to |
[in] | buffer | The frame data to save |
[in] | length | The frame data length |