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.
______________________________________________________________
Success Response Body
200: This will return the access URL
Example
{“accessURL”: “http://test-server-url/”}
Failure Response
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
{"data": {“accessURL”: “http://test-server-url/”}}
______________________________________________________________
Success Response Body
200: This returns the access URL - the same value that you passed in the request body to the player
Failure Response
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"
______________________________________________________________
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
{ id: "9e61ac20-2014-11ee-a14d-73a9c31db7cd", mediaSource: "desktop", available: true, viewing: true }
Failure Response
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
______________________________________________________________
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
{ id: "9e61ac20-2014-11ee-a14d-73a9c31db7cd", mediaSource: "desktop", available: true, viewing: true }
Failure Response
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"
______________________________________________________________
Success Response Body
200: A successful response returns the session id.
Example
{sessionID: "9e61ac20-2014-11ee-a14d-73a9c31db7cd"}
Failure Response
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
______________________________________________________________
Success Response Body
200: The specified session was stopped
Example
{ stopped : true }
Failure Response
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