Janus JavaScript plugin (via Duktape)
More...
#include <jansson.h>
#include "janus_duktape_data.h"
#include "janus_duktape_extra.h"
|
janus_plugin * | create (void) |
|
int | janus_duktape_init (janus_callbacks *callback, const char *config_path) |
|
void | janus_duktape_destroy (void) |
|
int | janus_duktape_get_api_compatibility (void) |
|
int | janus_duktape_get_version (void) |
|
const char * | janus_duktape_get_version_string (void) |
|
const char * | janus_duktape_get_description (void) |
|
const char * | janus_duktape_get_name (void) |
|
const char * | janus_duktape_get_author (void) |
|
const char * | janus_duktape_get_package (void) |
|
void | janus_duktape_create_session (janus_plugin_session *handle, int *error) |
|
struct janus_plugin_result * | janus_duktape_handle_message (janus_plugin_session *handle, char *transaction, json_t *message, json_t *jsep) |
|
json_t * | janus_duktape_handle_admin_message (json_t *message) |
|
void | janus_duktape_setup_media (janus_plugin_session *handle) |
|
void | janus_duktape_incoming_rtp (janus_plugin_session *handle, janus_plugin_rtp *packet) |
|
void | janus_duktape_incoming_rtcp (janus_plugin_session *handle, janus_plugin_rtcp *packet) |
|
void | janus_duktape_incoming_data (janus_plugin_session *handle, janus_plugin_data *packet) |
|
void | janus_duktape_data_ready (janus_plugin_session *handle) |
|
void | janus_duktape_slow_link (janus_plugin_session *handle, int mindex, gboolean video, gboolean uplink) |
|
void | janus_duktape_hangup_media (janus_plugin_session *handle) |
|
void | janus_duktape_destroy_session (janus_plugin_session *handle, int *error) |
|
json_t * | janus_duktape_query_session (janus_plugin_session *handle) |
|
janus_duktape_session * | janus_duktape_lookup_session (janus_plugin_session *handle) |
|
Janus JavaScript plugin (via Duktape)
- Author
- Lorenzo Miniero loren.nosp@m.zo@m.nosp@m.eetec.nosp@m.ho.c.nosp@m.om
- Copyright
- GNU General Public License v3
Check the JavaScript (Duktape) plugin documentation for more details.
Plugins Duktape plugin API
◆ DUK_CASE_STR
#define DUK_CASE_STR |
( |
| type | ) |
case type: return #type |
◆ JANUS_DUKTAPE_AUTHOR
#define JANUS_DUKTAPE_AUTHOR "Meetecho s.r.l." |
◆ JANUS_DUKTAPE_DESCRIPTION
#define JANUS_DUKTAPE_DESCRIPTION "A custom plugin for implementing the logic in JavaScript, via Duktape." |
◆ JANUS_DUKTAPE_NAME
#define JANUS_DUKTAPE_NAME "Janus JavaScript plugin (Duktape)" |
◆ JANUS_DUKTAPE_PACKAGE
#define JANUS_DUKTAPE_PACKAGE "janus.plugin.duktape" |
◆ JANUS_DUKTAPE_VERSION
#define JANUS_DUKTAPE_VERSION 1 |
◆ JANUS_DUKTAPE_VERSION_STRING
#define JANUS_DUKTAPE_VERSION_STRING "0.0.1" |
◆ janus_duktape_async_event
typedef struct janus_duktape_async_event janus_duktape_async_event |
◆ janus_duktape_async_event_type
◆ janus_duktape_callback
typedef struct janus_duktape_callback janus_duktape_callback |
◆ janus_duktape_event
◆ janus_duktape_rtp_relay_packet
typedef struct janus_duktape_rtp_relay_packet janus_duktape_rtp_relay_packet |
◆ janus_duktape_async_event_type
Enumerator |
---|
janus_duktape_async_event_type_none | |
janus_duktape_async_event_type_pushevent | |
◆ janus_duktape_event
Enumerator |
---|
janus_duktape_event_none | |
janus_duktape_event_resume | |
janus_duktape_event_exit | |
◆ create()
◆ janus_duktape_create_session()
◆ janus_duktape_data_ready()
◆ janus_duktape_destroy()
void janus_duktape_destroy |
( |
void | | ) |
|
◆ janus_duktape_destroy_session()
◆ janus_duktape_get_api_compatibility()
int janus_duktape_get_api_compatibility |
( |
void | | ) |
|
◆ janus_duktape_get_author()
const char * janus_duktape_get_author |
( |
void | | ) |
|
◆ janus_duktape_get_description()
const char * janus_duktape_get_description |
( |
void | | ) |
|
◆ janus_duktape_get_name()
const char * janus_duktape_get_name |
( |
void | | ) |
|
◆ janus_duktape_get_package()
const char * janus_duktape_get_package |
( |
void | | ) |
|
◆ janus_duktape_get_version()
int janus_duktape_get_version |
( |
void | | ) |
|
◆ janus_duktape_get_version_string()
const char * janus_duktape_get_version_string |
( |
void | | ) |
|
◆ janus_duktape_handle_admin_message()
json_t * janus_duktape_handle_admin_message |
( |
json_t * | message | ) |
|
◆ janus_duktape_handle_message()
◆ janus_duktape_hangup_media()
◆ janus_duktape_incoming_data()
◆ janus_duktape_incoming_rtcp()
◆ janus_duktape_incoming_rtp()
◆ janus_duktape_init()
int janus_duktape_init |
( |
janus_callbacks * | callback, |
|
|
const char * | config_path ) |
◆ janus_duktape_lookup_session()
◆ janus_duktape_query_session()
◆ janus_duktape_setup_media()
◆ janus_duktape_slow_link()
void janus_duktape_slow_link |
( |
janus_plugin_session * | handle, |
|
|
int | mindex, |
|
|
gboolean | video, |
|
|
gboolean | uplink ) |
◆ duktape_ctx
duk_context* duktape_ctx = NULL |
◆ duktape_ids
◆ duktape_initialized
volatile gint duktape_initialized = 0 |
◆ duktape_janus_core
◆ duktape_mutex
◆ duktape_sessions
GHashTable* duktape_sessions |
◆ duktape_sessions_mutex
◆ duktape_stopping
volatile gint duktape_stopping = 0 |