Description
Endpoint provides functionality to initiate streaming sessions. It creates a unique Room
at the
WebRTC server for upcoming audio publishing and registers connection at the WebSocket translation management API.
JWT access token received in response should be used for both connecting to the WebRTC server and WebSocket
translation management API.
Notice, the JWT access token contains permissions, which may lead to restriction of several API functionalities.
Streaming session allows publishing RTC stream to the server, receiving translated audio stream,
and managing translation options through WebSocket API.
References
Request Body |
---|
data objectpublisher_count Publisher token countPossible values: 1 ≤ value ≤ 1 Number of publisher tokens to generate | subscriber_count Subscriber token countPossible values: value ≤ 10 Number of subscriber tokens to generate | publisher_can_subscribe Publisher can subscribe | intent IntentPossible values: [api , broadcaster , desktop ] Intent of the session. Used for analytics and debugging purposes. |
|
Responses |
---|
200
Session created successfully. Schema — OPTIONAL |
---|
data object — OPTIONALStreaming session response data. Notice, address provided in the response example
are placeholders and will differ in real response. publisher string[]JWT used to connect to the WebRTS server and Translation management WebSocket API | subscriber string[]JWT used to connect to the WebRTS server and Translation management WebSocket API | room_name Room nameRoom name to join WebRTC server | stream_url Stream URLStreaming API URL to publish a stream | control_url Control URLWebSocket API URL to manage translation options | intent IntentPossible values: [api , broadcaster , desktop ] Intent of the session. Used for analytics and debugging purposes. | id Session IDPublisher session identifier. |
|
|
Schema — OPTIONAL |
---|
ok Ok — OPTIONALIndicates if the request was successful or not. | errors object[]type uriPossible values: 1 ≤ length ≤ 2083 A string containing a URI reference that identifies the problem type. | status StatusPossible values: 399 < value < 600 A number indicating the HTTP status code. | title TitlePossible values: 5 ≤ length A string containing a short, human-readable summary of the problem type. | detail DetailPossible values: 5 ≤ length A string containing a human-readable explanation specific to this occurrence of the problem. | instance InstancePossible values: 1 ≤ length A string containing a URI reference that identifies the specific occurrence of the problem. | error_code Error CodeA Number that indicates the error type that occurred. |
|
|