Janus TextRoom plugin.
More...
#include "plugin.h"
#include <jansson.h>
#include "../debug.h"
#include "../apierror.h"
#include "../config.h"
#include "../mutex.h"
#include "../utils.h"
|
janus_plugin * | create (void) |
|
int | janus_textroom_init (janus_callbacks *callback, const char *config_path) |
|
void | janus_textroom_destroy (void) |
|
int | janus_textroom_get_api_compatibility (void) |
|
int | janus_textroom_get_version (void) |
|
const char * | janus_textroom_get_version_string (void) |
|
const char * | janus_textroom_get_description (void) |
|
const char * | janus_textroom_get_name (void) |
|
const char * | janus_textroom_get_author (void) |
|
const char * | janus_textroom_get_package (void) |
|
void | janus_textroom_create_session (janus_plugin_session *handle, int *error) |
|
struct janus_plugin_result * | janus_textroom_handle_message (janus_plugin_session *handle, char *transaction, json_t *message, json_t *jsep) |
|
json_t * | janus_textroom_handle_admin_message (json_t *message) |
|
void | janus_textroom_setup_media (janus_plugin_session *handle) |
|
void | janus_textroom_incoming_rtp (janus_plugin_session *handle, janus_plugin_rtp *packet) |
|
void | janus_textroom_incoming_rtcp (janus_plugin_session *handle, janus_plugin_rtcp *packet) |
|
void | janus_textroom_incoming_data (janus_plugin_session *handle, janus_plugin_data *packet) |
|
void | janus_textroom_data_ready (janus_plugin_session *handle) |
|
void | janus_textroom_slow_link (janus_plugin_session *handle, int uplink, int video) |
|
void | janus_textroom_hangup_media (janus_plugin_session *handle) |
|
void | janus_textroom_destroy_session (janus_plugin_session *handle, int *error) |
|
json_t * | janus_textroom_query_session (janus_plugin_session *handle) |
|
janus_plugin_result * | janus_textroom_handle_incoming_request (janus_plugin_session *handle, char *text, json_t *json, gboolean internal) |
|
Janus TextRoom plugin.
- 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 Janus TextRoom documentation for more details.
Plugins
#define JANUS_TEXTROOM_AUTHOR "Meetecho s.r.l." |
#define JANUS_TEXTROOM_DESCRIPTION "This is a plugin implementing a text-only room for Janus, using DataChannels." |
#define JANUS_TEXTROOM_ERROR_ALREADY_IN_ROOM 421 |
#define JANUS_TEXTROOM_ERROR_ALREADY_SETUP 416 |
#define JANUS_TEXTROOM_ERROR_INVALID_ELEMENT 414 |
#define JANUS_TEXTROOM_ERROR_INVALID_JSON 412 |
#define JANUS_TEXTROOM_ERROR_INVALID_REQUEST 415 |
#define JANUS_TEXTROOM_ERROR_MISSING_ELEMENT 413 |
#define JANUS_TEXTROOM_ERROR_NO_MESSAGE 411 |
#define JANUS_TEXTROOM_ERROR_NO_SUCH_ROOM 417 |
#define JANUS_TEXTROOM_ERROR_NO_SUCH_USER 423 |
#define JANUS_TEXTROOM_ERROR_NOT_IN_ROOM 422 |
#define JANUS_TEXTROOM_ERROR_ROOM_EXISTS 418 |
#define JANUS_TEXTROOM_ERROR_UNAUTHORIZED 419 |
#define JANUS_TEXTROOM_ERROR_UNKNOWN_ERROR 499 |
#define JANUS_TEXTROOM_ERROR_USERNAME_EXISTS 420 |
#define JANUS_TEXTROOM_NAME "JANUS TextRoom plugin" |
#define JANUS_TEXTROOM_PACKAGE "janus.plugin.textroom" |
#define JANUS_TEXTROOM_VERSION 2 |
#define JANUS_TEXTROOM_VERSION_STRING "0.0.2" |
Value:"v=0\r\n" \
"o=- %"SCNu64" %"SCNu64" IN IP4 127.0.0.1\r\n" \
"s=Janus TextRoom plugin\r\n" \
"t=0 0\r\n" \
"m=application 1 UDP/DTLS/SCTP webrtc-datachannel\r\n" \
"c=IN IP4 1.1.1.1\r\n" \
"a=sctp-port:5000\r\n"
void janus_textroom_destroy |
( |
void |
| ) |
|
int janus_textroom_get_api_compatibility |
( |
void |
| ) |
|
const char * janus_textroom_get_author |
( |
void |
| ) |
|
const char * janus_textroom_get_description |
( |
void |
| ) |
|
const char * janus_textroom_get_name |
( |
void |
| ) |
|
const char * janus_textroom_get_package |
( |
void |
| ) |
|
int janus_textroom_get_version |
( |
void |
| ) |
|
const char * janus_textroom_get_version_string |
( |
void |
| ) |
|
json_t * janus_textroom_handle_admin_message |
( |
json_t * |
message | ) |
|
int janus_textroom_init |
( |
janus_callbacks * |
callback, |
|
|
const char * |
config_path |
|
) |
| |