Skip to main content

GET Outstream Player by PublicId

Overview


The following table contains important information about the GET method in regards to receiving the outstream player by using the public ID.

GET Outstream Player by PublicId
MethodGET
URL or Endpoint/api/v1/projects/projectId/outstream-players/id
HeadersAuthorization
ParametersprojectId, id
BodyNot Applicable

The description of the URL parameters is as follows:

URL Parameter NameMandatoryTypeDescription
projectIdYesstringUnique Id of the project.
idYesstringUnique id of the outstream player.

Request Body

The request does not contain a request body

Response

{
"success": true,
"errors": [
"string"
],
"messages": [],
"result": {
"publicId": "string",
"name": "string",
"responsive": true,
"width": 0,
"height": 0,
"releaseChannelId": 0,
"muteOnStart": true,
"viewableThresholdPercentage": 0,
"autoStartOnViewableOn": true,
"autoPauseOnViewableOn": true,
"volumeSlider": true,
"playButton": true,
"muteButton": true,
"controlBarIconsDefaultColor": "string",
"controlBarIconsHoverColor": "string",
"controlBarSliderProgressColor": "string",
"controlBarSliderRailColor": "string",
"controlBarSliderDraggerColor": "string",
"orderNumber": 0,
"releaseChannel": {
"id": 0,
"name": "string",
"originalPath": "string",
"templateOriginalPath": "string"
}
},
"resultInfo": "string",
"statusCode": 0
}

Information about the fields that appear when you receive the response are displayed in the table below.

Field NameTypeDescription
successboolIf the response is successful, it returns true; otherwise, it returns false.
errorsarray[]Indicates if there was an error.
messagesarray[]Returns the response message from the back-end.
resultarray[Object]Returns the response object.
publicIdstringThe public ID of the player.
namestringThe name of the player.
responsivebooleanIndicates whether the player is responsive.
widthintegerThe width of the player.
heightintegerThe height of the player.
releaseChannelIdintegerThe ID of the release channel.
muteOnStartbooleanIndicates whether the player is muted on start.
viewableThresholdPercentagenumberThe percentage of the player that must be viewable for certain actions (e.g., auto-start) to occur.
autoStartOnViewableOnbooleanIndicates whether auto-start is enabled when the player becomes viewable.
autoPauseOnViewableOnbooleanIndicates whether auto-pause is enabled when the player becomes unviewable.
volumeSliderbooleanIndicates whether the volume slider is enabled.
playButtonbooleanIndicates whether the play button is enabled.
muteButtonbooleanIndicates whether the mute/unmute button is enabled.
controlBarIconsDefaultColorstringColor for control bar icons in default state.
controlBarIconsHoverColorstringColor for control bar icons on hover.
controlBarSliderProgressColorstringColor of the progress part of the control bar slider.
controlBarSliderRailColorstringColor of the rail (background) of the control bar slider.
controlBarSliderDraggerColorstringColor of the dragger (handle) on the control bar slider.
orderNumberintegerThe order number of the player.
releaseChannelObjectReturns details about the release channel.
releaseChannel.idintegerThe ID of the release channel.
releaseChannel.namestringThe name of the release channel.
releaseChannel.originalPathstringThe original file path of the release channel.
releaseChannel.templateOriginalPathstringThe original template file path of the release channel.
resultInfostringReturns extra information about the result.
statusCodeintegerReturns the HTTP Status Code.

If the action is successful, the service sends back an HTTP 200 or 201 response.

Errors

For information about the errors that are common to all actions, see Common Errors:

  • HTTP Status Code 400: Bad Request

  • HTTP Status Code 401: Unauthorized

  • HTTP Status Code 403: Forbidden

  • HTTP Status Code 404: Result Not Found

  • HTTP Status Code 500: Internal Server Error

  • HTTP Status Code 503: Backend Fetch Failed