Fork me on GitHub
Data Structures | Macros | Typedefs | Functions
janus_recordplay.c File Reference

Janus Record&Play plugin. More...

#include "plugin.h"
#include <dirent.h>
#include <arpa/inet.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <jansson.h>
#include "../debug.h"
#include "../apierror.h"
#include "../config.h"
#include "../mutex.h"
#include "../record.h"
#include "../sdp-utils.h"
#include "../rtp.h"
#include "../rtcp.h"
#include "../utils.h"
Include dependency graph for janus_recordplay.c:

Data Structures

struct  janus_recordplay_message
 
struct  janus_recordplay_rtp_header_extension
 
struct  janus_recordplay_frame_packet
 
struct  janus_recordplay_recording
 
struct  janus_recordplay_session
 

Macros

#define JANUS_RECORDPLAY_VERSION   4
 
#define JANUS_RECORDPLAY_VERSION_STRING   "0.0.4"
 
#define JANUS_RECORDPLAY_DESCRIPTION   "This is a trivial Record&Play plugin for Janus, to record WebRTC sessions and replay them."
 
#define JANUS_RECORDPLAY_NAME   "JANUS Record&Play plugin"
 
#define JANUS_RECORDPLAY_AUTHOR   "Meetecho s.r.l."
 
#define JANUS_RECORDPLAY_PACKAGE   "janus.plugin.recordplay"
 
#define AUDIO_PT   111
 
#define VIDEO_PT   100
 
#define JANUS_RECORDPLAY_ERROR_NO_MESSAGE   411
 
#define JANUS_RECORDPLAY_ERROR_INVALID_JSON   412
 
#define JANUS_RECORDPLAY_ERROR_INVALID_REQUEST   413
 
#define JANUS_RECORDPLAY_ERROR_INVALID_ELEMENT   414
 
#define JANUS_RECORDPLAY_ERROR_MISSING_ELEMENT   415
 
#define JANUS_RECORDPLAY_ERROR_NOT_FOUND   416
 
#define JANUS_RECORDPLAY_ERROR_INVALID_RECORDING   417
 
#define JANUS_RECORDPLAY_ERROR_INVALID_STATE   418
 
#define JANUS_RECORDPLAY_ERROR_INVALID_SDP   419
 
#define JANUS_RECORDPLAY_ERROR_RECORDING_EXISTS   420
 
#define JANUS_RECORDPLAY_ERROR_UNKNOWN_ERROR   499
 

Typedefs

typedef struct janus_recordplay_message janus_recordplay_message
 
typedef struct janus_recordplay_rtp_header_extension janus_recordplay_rtp_header_extension
 
typedef struct janus_recordplay_frame_packet janus_recordplay_frame_packet
 
typedef struct janus_recordplay_recording janus_recordplay_recording
 
typedef struct janus_recordplay_session janus_recordplay_session
 

Functions

janus_plugincreate (void)
 
int janus_recordplay_init (janus_callbacks *callback, const char *onfig_path)
 
void janus_recordplay_destroy (void)
 
int janus_recordplay_get_api_compatibility (void)
 
int janus_recordplay_get_version (void)
 
const char * janus_recordplay_get_version_string (void)
 
const char * janus_recordplay_get_description (void)
 
const char * janus_recordplay_get_name (void)
 
const char * janus_recordplay_get_author (void)
 
const char * janus_recordplay_get_package (void)
 
void janus_recordplay_create_session (janus_plugin_session *handle, int *error)
 
struct janus_plugin_resultjanus_recordplay_handle_message (janus_plugin_session *handle, char *transaction, json_t *message, json_t *jsep)
 
void janus_recordplay_setup_media (janus_plugin_session *handle)
 
void janus_recordplay_incoming_rtp (janus_plugin_session *handle, int video, char *buf, int len)
 
void janus_recordplay_incoming_rtcp (janus_plugin_session *handle, int video, char *buf, int len)
 
void janus_recordplay_incoming_data (janus_plugin_session *handle, char *buf, int len)
 
void janus_recordplay_slow_link (janus_plugin_session *handle, int uplink, int video)
 
void janus_recordplay_hangup_media (janus_plugin_session *handle)
 
void janus_recordplay_destroy_session (janus_plugin_session *handle, int *error)
 
json_tjanus_recordplay_query_session (janus_plugin_session *handle)
 
janus_recordplay_frame_packetjanus_recordplay_get_frames (const char *dir, const char *filename)
 
void janus_recordplay_update_recordings_list (void)
 
void janus_recordplay_send_rtcp_feedback (janus_plugin_session *handle, int video, char *buf, int len)
 

Detailed Description

Janus Record&Play plugin.

Author
Lorenzo Miniero loren.nosp@m.zo@m.nosp@m.eetec.nosp@m.ho.c.nosp@m.om

Check the Record&Play plugin documentation for more details.

Plugins

Macro Definition Documentation

#define AUDIO_PT   111
#define JANUS_RECORDPLAY_AUTHOR   "Meetecho s.r.l."
#define JANUS_RECORDPLAY_DESCRIPTION   "This is a trivial Record&Play plugin for Janus, to record WebRTC sessions and replay them."
#define JANUS_RECORDPLAY_ERROR_INVALID_ELEMENT   414
#define JANUS_RECORDPLAY_ERROR_INVALID_JSON   412
#define JANUS_RECORDPLAY_ERROR_INVALID_RECORDING   417
#define JANUS_RECORDPLAY_ERROR_INVALID_REQUEST   413
#define JANUS_RECORDPLAY_ERROR_INVALID_SDP   419
#define JANUS_RECORDPLAY_ERROR_INVALID_STATE   418
#define JANUS_RECORDPLAY_ERROR_MISSING_ELEMENT   415
#define JANUS_RECORDPLAY_ERROR_NO_MESSAGE   411
#define JANUS_RECORDPLAY_ERROR_NOT_FOUND   416
#define JANUS_RECORDPLAY_ERROR_RECORDING_EXISTS   420
#define JANUS_RECORDPLAY_ERROR_UNKNOWN_ERROR   499
#define JANUS_RECORDPLAY_NAME   "JANUS Record&Play plugin"
#define JANUS_RECORDPLAY_PACKAGE   "janus.plugin.recordplay"
#define JANUS_RECORDPLAY_VERSION   4
#define JANUS_RECORDPLAY_VERSION_STRING   "0.0.4"
#define VIDEO_PT   100

Typedef Documentation

Function Documentation

janus_plugin* create ( void  )
void janus_recordplay_create_session ( janus_plugin_session handle,
int *  error 
)
void janus_recordplay_destroy ( void  )
void janus_recordplay_destroy_session ( janus_plugin_session handle,
int *  error 
)
int janus_recordplay_get_api_compatibility ( void  )
const char * janus_recordplay_get_author ( void  )
const char * janus_recordplay_get_description ( void  )
janus_recordplay_frame_packet * janus_recordplay_get_frames ( const char *  dir,
const char *  filename 
)
const char * janus_recordplay_get_name ( void  )
const char * janus_recordplay_get_package ( void  )
int janus_recordplay_get_version ( void  )
const char * janus_recordplay_get_version_string ( void  )
struct janus_plugin_result * janus_recordplay_handle_message ( janus_plugin_session handle,
char *  transaction,
json_t message,
json_t jsep 
)
void janus_recordplay_hangup_media ( janus_plugin_session handle)
void janus_recordplay_incoming_data ( janus_plugin_session handle,
char *  buf,
int  len 
)
void janus_recordplay_incoming_rtcp ( janus_plugin_session handle,
int  video,
char *  buf,
int  len 
)
void janus_recordplay_incoming_rtp ( janus_plugin_session handle,
int  video,
char *  buf,
int  len 
)
int janus_recordplay_init ( janus_callbacks callback,
const char *  onfig_path 
)
json_t * janus_recordplay_query_session ( janus_plugin_session handle)
void janus_recordplay_send_rtcp_feedback ( janus_plugin_session handle,
int  video,
char *  buf,
int  len 
)
void janus_recordplay_setup_media ( janus_plugin_session handle)
void janus_recordplay_slow_link ( janus_plugin_session handle,
int  uplink,
int  video 
)
void janus_recordplay_update_recordings_list ( void  )