19 #ifndef _JANUS_RECORD_H
20 #define _JANUS_RECORD_H
int janus_recorder_free(janus_recorder *recorder)
Free the recorder resources.
Definition: record.c:296
char * codec
Codec the packets to record are encoded in ("vp8", "vp9", "h264", "opus", "pcma", "pcmu"...
Definition: record.h:46
gint64 created
When the recording file has been created.
Definition: record.h:48
janus_mutex mutex
Mutex to lock/unlock this recorder instance.
Definition: record.h:56
int janus_recorder_save_frame(janus_recorder *recorder, char *buffer, uint length)
Save an RTP frame in the recorder.
Definition: record.c:193
char * dir
Absolute path to the directory where the recorder file is stored.
Definition: record.h:40
volatile int writable
Whether this recorder instance can be used for writing or not.
Definition: record.h:54
volatile int header
Whether the info header for this recorder instance has already been written or not.
Definition: record.h:52
void janus_recorder_deinit(void)
De-initialize the recorder code.
Definition: record.c:59
janus_recorder * janus_recorder_create(const char *dir, const char *codec, const char *filename)
Create a new recorder.
Definition: record.c:65
FILE * file
Recording file.
Definition: record.h:44
janus_recorder_medium type
Media this instance is recording.
Definition: record.h:50
int janus_recorder_close(janus_recorder *recorder)
Close the recorder.
Definition: record.c:258
Structure that represents a recorder.
Definition: record.h:38
void janus_recorder_init(gboolean tempnames, const char *extension)
Initialize the recorder code.
Definition: record.c:45
struct janus_recorder janus_recorder
Structure that represents a recorder.
Semaphors, Mutexes and Conditions.
pthread_mutex_t janus_mutex
Janus mutex implementation.
Definition: mutex.h:21
char * filename
Filename of this recorder file.
Definition: record.h:42
janus_recorder_medium
Media types we can record.
Definition: record.h:31