#include <arpa/inet.h>
#include <sys/stat.h>
#include <errno.h>
#include "record.h"
#include "debug.h"
#include "utils.h"
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. |
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 |