GET /remoteview/config/
Use the PUT endpoint to configure the player with an access URL. You can then use this endpoint to check that the configuration is correct.
______________________________________________________________
Response
Success Response Body
200: This will return the access URL
Example
{“accessURL”: “http://test-server-url/”}
Failure
400: The request is malformed and therefore invalid
401: The access token is invalid or not specified
5XX: Any 500 code is an internal server error
PUT /remoteview/config/
Configures the player with the access URL
Request Body
accessURL
string
The remote view server URL
______________________________________________________________
Request Example
Code Block | ||
---|---|---|
| ||
{"data": {“accessURL”: “http://test-server-url/”}} |
______________________________________________________________
Response
Success Response Body
200: This returns the access URL - the same value that you passed in the request body to the player
Failure
400: Either the request or request body is malformed and therefore invalid
401: The access token is invalid or not specified
5XX: Any 500 code is an internal server error
GET /remoteview/{:source}/view/
Returns the information about all the active remote view sessions.
Request Body
source
string
This value will always be "desktop"
______________________________________________________________
Response
Success Response Body
200: Returns an array of session objects. Each object contains the following parameters:
id
string: The session idmediaSource
string: The value is always"desktop"
available
bool: This value is alwaystrue
when the session is active.viewing
bool: This indicates that the session is active. The value will always betrue
.
Example
Code Block |
---|
{ id: "9e61ac20-2014-11ee-a14d-73a9c31db7cd", mediaSource: "desktop", available: true, viewing: true } |
Failure
400: The request is malformed and therefore invalid
401: The access token is invalid or not specified
5XX: Any 500 code is an internal server error
GET /remoteview/{:source}/view/:id/
Returns information about the specified remote view session using its session id
Request Body
source
string
This value will always be "desktop"
id
string
The unique identifier for the session
______________________________________________________________
Response
Success Response Body
200: Returns the following specified session object:
id
string: The session idmediaSource
string: This value is always"desktop"
available
bool: This value is alwaystrue
when the session is active.viewing
bool: This indicates that the session is active. The value will always betrue
.
Example
Code Block |
---|
{ id: "9e61ac20-2014-11ee-a14d-73a9c31db7cd", mediaSource: "desktop", available: true, viewing: true } |
Failure
400: The request is malformed and therefore invalid
401: The access token is invalid or not specified
404: The specified session id was not found
5XX: Any 500 code is an internal server error
POST /remoteview/{:source}/view/
Starts a new session and returns an id for the session (at this point, the signaling server has been initialized and has made a WebSocket connection to the player)
Request Body
source
string
This value will always be "desktop"
______________________________________________________________
Response
Success Response Body
200: A successful response returns the session id.
Example
Code Block |
---|
{sessionID: "9e61ac20-2014-11ee-a14d-73a9c31db7cd"} |
Failure
400: The request or request body is malformed and therefore invalid
401: The access token is invalid or not specified
5XX: Any 500 code is an internal server error
DELETE /remoteview/{:source}/view/:id/
Stops the specified remote view session using its session id
Request Body
source
string
This value will always be "desktop"
id
string
The unique identifier for the session you want to stop
______________________________________________________________
Response
Success Response Body
200: The specified session was stopped
Example
Code Block |
---|
{ stopped : true } |
Failure
400: The request is malformed and therefore invalid
401: The access token is invalid or not specified
404: The specified session id was not found
5XX: Any 500 code is an internal server error