Skip to main content

GET Player by PublicId

Overview


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

GET Player by PublicId
MethodGET
URL or Endpoint/api/projects/projectId/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 player.

Request Body

The request does not contain a request body

Response

{
"success": true,
"errors": [],
"messages": [],
"result": {
"publicId": "ptkzupxi",
"name": "Player with updated config renamed",
"loopContent": true,
"muteOnStart": true,
"floatOnScroll": true,
"autoPauseWhenNotViewable": false,
"enablePlayBackRateControls": false,
"sharing": true,
"casting": true,
"googleAnalytics": true,
"includeCompatibilityScript": true,
"showContentTitle": true,
"showContentDescription": true,
"showControls": false,
"recommendation": false,
"advertising": false,
"showControlsOnVPAID": true,
"outstreamPlayer": true,
"dispAdverisementAbove": true,
"autoCollapseAfterAds": true,
"preloadAds": false,
"companionAds": false,
"playAdsMuted": true,
"keepVisibleWhenControlsHidden": false,
"debug": null,
"theaterButton": true,
"chromeCastButton": null,
"nextButton": null,
"airplayButton": null,
"settingsButton": true,
"bigPlayButton": null,
"autoPlay": null,
"muted": null,
"floatDismissible": null,
"logoOn": false,
"adsRequireInteraction": null,
"focusOnAutoStart": null,
"floatOnMobile": null,
"floatRequiresInteraction": null,
"floatWidth": null,
"logoUrl": "",
"logoOnClickUrl": null,
"logoDefaultOpacity": 1,
"logoInactiveOpacity": 0.5,
"channelUrl": null,
"cloudHostedPlayerLibrary": "https://vp-dev.gjirafa.net/player/ptkzupxi.js",
"width": null,
"height": 340,
"adScheduleId": null,
"playerSizeTypeId": 1,
"preloadOptionId": 1,
"defaultBandwidthEstimateOptionId": 1,
"sharingTypeId": null,
"logoPositionOptionId": 1,
"floatPositionOptionId": 4,
"responsiveSizeOptionId": 1,
"releaseChannelId": 7,
"sharingTooltip": "",
"rightClickText": "",
"rightClickUrl": "",
"countDownMessage": "This video will resume in xx seconds MSGGGGG",
"cueText": "Advertisement REKLAMA",
"skipCountDown": null,
"companionAdsDivID": null,
"companionAdsWidth": 0,
"companionAdsHeight": 0,
"volume": null,
"skipAmount": null,
"Play": "Play",
"Pause": "Pause",
"Next": "Next",
"Replay": "Replay",
"Volume": "Volume",
"Mute": "Mute",
"UnMute": "Unmute",
"Settings": "Settings",
"FullScreen": "FullScreen",
"Chromecast": "Chromecast",
"Airplay": "Airplay",
"Quality": "Quality",
"Subtitles": "Subtitles",
"Theater": "Theater",
"Skip": null,
"SkipIn": null,
"Visit": null,
"Info": null,
"autoStartOn": false,
"autoStartOnData": false,
"autoStartPlayPercentage": 0,
"autoPauseOn": false,
"autoPausePercentage": 0,
"pauseOtherVideos": false,
"autoStartOnLoad": null,
"autoStartOnLoadMobile": null,
"autoStartOnLoadOnData": null,
"autoStartOnViewableOn": null,
"autoStartOnViewableMobile": null,
"autoStartOnViewableOnData": null,
"autoStartOnViewablePercentage": null,
"autoPauseOnViewableOn": null,
"autoPauseOnViewablePercentage": null,
"releaseChannel": {
"id": 7,
"name": "v1.5",
"originalPath": "vpplayer/templates/v15/vp-player.js",
"templateOriginalPath": "https://vp-dev.gjirafa.net/vps/vpplayer/templates/v15/vp-player.js"
},
"playerSizeType": {
"id": 1,
"name": "Responsive"
},
"preloadOption": {
"id": 1,
"name": "None",
"value": "none",
"tooltipText": "Incurs no additional bandwidth usage, but does not ensure immediate playback. The player begins to load media only when the viewer clicks play."
},
"defaultBandwidthEstimateOption": {
"id": 1,
"name": "None",
"value": "0"
},
"sharingType": null,
"responsiveSizeOption": {
"id": 1,
"name": "16:9"
},
"logoPositionOption": {
"id": 1,
"name": "Top right (default)",
"value": "TOP_RIGHT"
},
"floatPositionOption": {
"id": 4,
"name": "Bottom left",
"value": "BOTTOM_LEFT"
},
"adSchedule": null,
"defaultConfig": null,
"playerSocialNetworks": [],
"controlBarTextColor": "ffffff",
"controlBarIconsDefaultColor": "ffffff",
"controlBarIconsHoverColor": "ffffff",
"controlBarTimesliderProgressColor": "cc0000",
"controlBarTimesliderRailColor": "808080",
"controlBarTimesliderDraggerColor": "ffffff",
"controlBarBackgroundColor": "ffffff00",
"controlBarTimesliderBufferColor": "e2e2e2",
"controlBarVolumeDraggerColor": "ffffff",
"controlBarVolumeProgressColor": "ffffff",
"controlBarVolumeRailColor": "9f9f9f",
"controlBarVolumeNotifierColor": "ffffff",
"controlBarTimeSliderOnAdDraggerColor": "ffffff",
"controlBarTimeSliderOnAdProgressColor": "f5c338",
"controlBarTimeSliderOnAdRailColor": "808080",
"menuLinksDefaultColor": "ffffff",
"menuLinksHoverColor": "cc0000",
"menuBackroundDefaultColor": "000000",
"menuBackroundHoverColor": "000000",
"menuAutoplayOnColor": "cc0000",
"menuAutoplayOffColor": "a7a7a7",
"tooltipsTextColor": "ffffff",
"tooltipsBackroundColor": "ffffff"
},
"resultInfo": null,
"statusCode": 200
}

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 will return true. Otherwise will return false.
errorsarray[]Indicates if there was an error.
messagesarray[]Returns the response message from back-end.
resultarray[Object]Returns the response object.
publicIdstringThe public ID of the player.
namestringThe name of the player.
loopContentboolIndicates whether the content should be looped.
muteOnStartboolIndicates whether the player is muted on start.
floatOnScrollboolIndicates whether the player should be in a float state when scrolling.
autoPauseWhenNotViewableboolIndicates whether the player should pause when it becomes unviewbale.
enablePlaybackRateControlsboolIndicates whther the playback rate controls are enabled.
sharingboolIndicates whether the sharing option is available.
castingboolIndicates whether the casting option is available.
googleAnalyticsboolIndicates whether Google Analytics are enabled.
includeCompatibilityScriptboolIndicates wether the compatibility script is included.
showContentTitleboolIndicates whether the player should show the content title.
showContentDescriptionboolIndicates whether the playr should show the content description.
showControlsboolIndicates whether the playr should show the controls.
recommendationboolIndicates whether the recommendation section is enabled.
advertisingboolIndicates whether advertising is enabled.
showControlsOnVPAIDboolIndicates whether the player should show the controls on VPAID.
oustreamPlayerboolIndicates whether the player is outstreamed.
dispAdvertisementAboveboolIndicates whether the advertisement above the player should be displayed.
autoCollapseAfterAdsboolIndicates whether the player should auto collapse after ads.
preloadAdsboolIndicates whether ads should be preloaded.
companionAdsboolIndicates whether companion ads are enabled.
playAdsMutedboolIndicates whether ads should be played on mute
keepVisibleWhenControlsHiddenboolIndicates whether the player is visible when the controls are hidden.
debugboolIndicates wether debugging is enabled.
chromeCastButtonboolIndicates whether the chromecast button is enabled.
nextButtonboolIndicates whether the next button is enabled.
airplayButtonboolIndicates whether the airplay button is enabled.
settingsButtonboolIndicates whether the settings button is enabled.
bigPlayButtonboolIndicates whether the main play button is enabled.
autoPlayboolIndicates whether auto play is enabled.
mutedboolIndicates whether the player is muted.
floatDismissibleboolIndicates whether the float option is dismissible.
logoOnboolIndicates whether the logo is on the player.
adsRequireInteractionboolIndicates whether the ads require interaction.
focusOnAutoStartboolIndicates whether the player is in a focus state on auto start.
floatOnMobileboolIndicates whether the player should have a float state on mobile versions.
floatRequiresInteractionboolIndicates whether the float option requires interaction.
floatWidthstringIndicates the width of the float
logoUrlstringThe URL of the logo.
logoOnClickUrlstringThe URL of the "on click" state of the logo.
logoDefaultOpacityinteger($int32)The default opacity of the logo.
logoInactiveOpacityinteger($int32)The opacity of the logo when it is inactive.
channelUrlstringThe URL of the channel.
cloudHostedPlayerLibrarystringThe URL of the cloud hosted player library.
widthinteger($int32)The width of the player.
heightinteger($int32)The height of the player
adScheduleIdinteger($int32)The Id of the ad schedule.
playerSizeTypeIdinteger($int32)The Id of the player size type.
prelaodOptioninteger($int32)The preload option.
defaultBandwidthEstimateOptioninteger($int32)The default bandwidth estimate option.
sharingTypeIdinteger($int32)The id of the sharing type.
logoPositionOptionIdinteger($int32)The id of the logo position option.
floatPositionOptioninteger($int32)The id of the float position option.
responsiveOptionIdinteger($int32)The id of the responsive option.
releaseChannelIdinteger($int32)The id of the release channel.
sharingTooltipstringThe sharing tooltip. Appears when the cursor is positioned over the sharing icon.
rightClickTextstringThe text that appears when you right-click.
rightClickUrlstringThe URL of the right-click.
countDownMessagestringIndicates the time until the video starts.
cueTextstringThe cue text of the ad.
skipCountDownstringIndicates whether the countdown should be skipped.
companionAdsDivIdstringThe div id of the companion ads.
companionAdsWidthinteger($int32)The height of the companion ad.
companionAdsHeightinteger($int32)The height of the companion ad.
volumeinteger($int32)The volume of the player.
skipAmountinteger($int32)The amount of seconds a skip makes.
playstringThe word "play" in a specific language.
PausestringThe word "pause" in a specific language.
NextstringThe word "next" in a specific language.
ReplaystringThe word "replay" in a specific language.
VolumestringThe word "volume" in a specific language.
MutestringThe word "mute" in a specific language.
UnmutestringThe word "unmute" in a specific language.
SettingsstringThe word "settings" in a specific language.
FullscreenstringThe word "fullscreen" in a specific language.
ChromecaststringThe word "chromecast" in a specific language.
AirplaystringThe word "airplay" in a specific language.
QualitystringThe word "quality" in a specific language.
SubtitlesstringThe word "subtitles" in a specific language.
TheaterstringThe word "theater" in a specific language.
SkipstringThe word "skip" in a specific language.
SkipInstringThe word "skip in" in a specific language.
VisitstringThe word "visit" in a specific language.
InfostringThe word "info" in a specific language.
autoStartOnboolIndicates whether the player has auto start enabled.
autoStartOnDataboolIndicates whether the player has auto start enabled.
autoStartPlayPercentageinteger($int32)Indicates on which percentage is auto start enabled.
autoPauseOnboolIndicates whether the player has auto pause enabled.
autoPauseOnPercentageinteger($int32)Indicates on which percentage is auto pause enabled.
pauseOtherVideosboolIndicates whether the other videos should be paused.
autoStartOnLoadObjectAn object with the autostart properties of the player when the page loads.
autoStartOnLoadMobileboolSpecifies if playback should start on load when the user is on mobile.
autoStartOnLoadOnDataboolSpecifies if playback should start on load when the user is on mobile data.
autoStartOnViewableObjectAn object with the autostart properties of the player dependin on its viewability.
autoStartOnViewableMobileboolSpecifies if this property should be on when the user is on mobile data.
autoStartOnViewableOnDataboolSpecifies if this property should be on when the user is on mobile data.
autoStartOnViewablePercentageinteger($int32)Value range: 1-0, specifies what percentage of the video should be visible for video to start.
autoPauseOnViewableOnboolAn object with the auto pause properties.
autoPauseOnViewablePercentageinteger($int32)Value range: 1-0, specifies what percentage of the video should be visible for video to start.
releaseChannelObjectReturns the release channel.
idinteger($int32)The id of the release channel.
namestringThe name of the release channel.
originalPathstringThe original path of the release channel.
templateOriginalPathstringThe original path of the template release channel.
playerSizeTypeObjectReturns the player size type.
idinteger($int32)The id of the player size type.
namestringThe name of the player size type.
preloadOptionObjectReturns the preload option.
idinteger($int32)The id of the preload option.
namestringThe name of the preload option.
valuestringThe value of the preload option.
tooltipTextstringGives a description about the preload option.
defaultBandwidthEstimateOptionObjectReturns the default bandwidth estimate option.
idinteger($int32)The id of the default bandwidth estimate option.
namestringThe name of the default bandwidth estimate option.
valuestringThe value of the default bandwidth estimate option.
sharingTypeObjectReturns the sharing type
responsiveSizeOptionObjectReturns the responsive size option.
idinteger($int32)The id of the responsive size option.
namestringThe name of the responsive size option.
logoPositionOptionObjectReturns the logo position option.
idinteger($int32)The id of the logo position option.
namestringThe name of the logo position option.
valuestringThe value of the logo position option.
floatPositionOptionObjectReturns the float position option.
idinteger($int32)The id of the float position option.
namestringThe name of the float position option.
valuestringThe value of the float position option.
adScheduleIdstringThe id of the ad schedule.
defaultConfigObjectObject that contains all of the configurations.
playerSocialNetworksarray[Object]Returns the social networks of the player.
controlbartextcolorstringIndicates the color of the control bar.
controlbariconsdefaultcolorstringIndicates the color of the control bar icon.
controlbariconshovercolorstringIndicates the color of the control bar when hovering.
controlbartimesliderprogresscolorstringIndicates the color of the control bar slider.
controlbartimesliderrailcolorstringIndicates the color of the control bar timeslider.
controlbartimesliderdraggercolorstringIndicates the color of the dragger of the control bar timeslider.
controlbartimesliderbuffercolorstringIndicates the color of the buffer of the control bar timeslider.
controlbarvolumedraggercolorstringIndicates the color of the control bar volume dragger.
controlbarvolumeprogresscolorstringIndicates the color of the control bar volume progress.
controlbarvolumerailcolorstringIndicates the color of the control bar volume rail.
controlbarvolumenotifiercolorstringIndicates the color of the control bar volume notifier.
menulinksdefaultcolorstringIndicates the color of the links menu.
menulinkshovercolorstringIndicates the color of the links menu when hovering.
menubackrounddefaultcolorstringIndicates the color of the menu background.
menubackroundhovercolorstringIndicates the color of the menu background when hovering.
menuautoplayoncolorstringIndicates the color of the menu auto-play when on.
menuautoplayoffcolorstringIndicates the color of the menu auto-play when off.
controlbarbackgroundcolorstringIndicates the color of the control bar background.
tooltipstextcolorstringIndicates the color of the tooltips text.
tooltipsbackroundcolorstringIndicates the color of the tooltips background.
controlbartimeslideronaddraggercolorstringIndicates the color of the dragger of the control bar timeslider.
controlbartimeslideronadprogresscolorstringIndicates the color of the ad progress of the control bar timeslider.
controlbartimeslideronadrailcolorstringIndicates the color of the ad rail of the control bar timeslider.
resultInfostringReturns extra information about the result.
statusCodeinteger($int32)Returns 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