JanusApi
All URIs are relative to http://localhost
| Method | HTTP request | Description |
|---|---|---|
| attachToJanusConnection | POST /janus/attach | Attaches to Janus connection |
| connectToJanus | POST /janus/connect | Connects to Janus session |
| createAndAttach | POST /janus/create-and-attach | Creates and attaches to Janus session |
| createJanusConnection | POST /janus/create | Creates Janus connection |
| getInfo | GET /janus/info | Returns info about Janus server |
| getListSession | GET /janus/list-sessions | Returns list of current Janus sessions |
| getSession | GET /janus/session | Returns info about Janus session |
| getSessionRaw | GET /janus/session-raw | Returns raw info about Janus session |
| getStatus | GET /janus/get-status | Returns raw info about Janus session |
| setSettings | POST /janus/settings | Sets janus settings |
| stopJanusConnection | POST /janus/stop | Stops an active Janus session |
| trickleJanus | POST /janus/trickle | Trickles data to Janus server |
attachToJanusConnection
Long attachToJanusConnection(sessionId)
Attaches to Janus connection
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| sessionId | Long | Janus session id to attach to | [default to null] |
Return type
Long
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json, /
connectToJanus
JanusResponse connectToJanus(ConnectData)
Connects to Janus session
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| ConnectData | ConnectData |
Return type
Authorization
No authorization required
HTTP request headers
- Content-Type: application/json
- Accept: application/json, /
createAndAttach
SessionData createAndAttach()
Creates and attaches to Janus session
Parameters
This endpoint does not need any parameter.
Return type
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json, /
createJanusConnection
Long createJanusConnection()
Creates Janus connection
Parameters
This endpoint does not need any parameter.
Return type
Long
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json, /
getInfo
String getInfo()
Returns info about Janus server
Parameters
This endpoint does not need any parameter.
Return type
String
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json, /
getListSession
List getListSession()
Returns list of current Janus sessions
Parameters
This endpoint does not need any parameter.
Return type
List
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json, /
getSession
JanusAdminSessionResponse getSession(sessionId)
Returns info about Janus session
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| sessionId | Long | Id of the session | [default to null] |
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json, /
getSessionRaw
String getSessionRaw(sessionId)
Returns raw info about Janus session
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| sessionId | Long | Id of the session | [default to null] |
Return type
String
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json, /
getStatus
JanusAdminGetStatusResponse getStatus()
Returns raw info about Janus session
Parameters
This endpoint does not need any parameter.
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json, /
setSettings
setSettings(timeout, level, timestamps, colors, locking-debug, ref-debug, libnice-debug, no-media-timer)
Sets janus settings
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| timeout | Integer | Session timeout | [optional] [default to null] |
| level | Integer | Log level | [optional] [default to null] |
| timestamps | Boolean | Timestamps | [optional] [default to null] |
| colors | Boolean | Log colors | [optional] [default to null] |
| locking-debug | Boolean | Locking debug | [optional] [default to null] |
| ref-debug | Boolean | Refcount debug | [optional] [default to null] |
| libnice-debug | Boolean | Libnice debug | [optional] [default to null] |
| no-media-timer | Integer | No media timer | [optional] [default to null] |
Return type
null (empty response body)
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: /
stopJanusConnection
stopJanusConnection(SessionData)
Stops an active Janus session
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| SessionData | SessionData |
Return type
null (empty response body)
Authorization
No authorization required
HTTP request headers
- Content-Type: application/json
- Accept: /
trickleJanus
trickleJanus(TrickleData)
Trickles data to Janus server
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| TrickleData | TrickleData |
Return type
null (empty response body)
Authorization
No authorization required
HTTP request headers
- Content-Type: application/json
- Accept: /