Skip to main content

GET Audio Player Config

Overview


The following table contains important information about the GET method in regards to receiving the audio player configuration.

GET Audio Player Config
MethodGET
URL or Endpoint/audio-player/playerId/audioId.json
HeadersNot Applicable
ParametersplayerId, audioId, startEpisode
BodyNot Applicable

The description of the URL parameters is as follows:

URL Parameter NameMandatoryTypeDescription
playerIdYesstringUnique Id of the audio player.
audioIdYesstringUnique Id of the audio.
startEpisodeNostring (query)The episode to start playback from (used for podcasts).

Request Body

The request does not contain a request body

Response

{
"projectId": "{projectId}",
"config": {
"configId": "{configId}",
"biskoId": "{biskoId}",
"recommended": false,
"autoplay": true,
"volume": 0.5,
"loop": false,
"highlightCurrentAudio": false,
"focusOnAutostart": false,
"readQualities": false,
"chromeCastApplicationId": "{chromeCastApplicationId}",
"version": 1,
"thumbnail": true,
"showPlaylistItemProgress": false,
"pauseOtherAudios": true,
"showPlaylist": false,
"size": {
"sizeType": "RESPONSIVE",
"width": 640,
"height": 360
},
"playbackRates": [0.25, 0.5, 0.75, 1, 1.25, 1.5, 1.75, 2],
"socialMedia": [],
"autostartOnViewable": {
"state": false,
"onMobile": false,
"onData": false,
"percentageViewable": 0.5
},
"autopauseOnViewable": {
"state": false,
"percentageViewable": 0.5
},
"float": {
"state": false,
"onMobile": false,
"position": "TOP_RIGHT",
"dismissible": false,
"requiresInteraction": false,
"style": {
"width": "340",
"border": null
}
},
"skin": {
"background": {
"useThumbnail": false,
"blur": false,
"gradient": false,
"url": null,
"primary": "011030",
"secondary": "EA622B"
},
"border": {
"width": 0,
"color": "FFFFFF"
},
"menu": {
"background": {
"default": "011030"
},
"text": {
"default": "FFFFFF"
},
"toggle": {
"default": "FFFFFF",
"on": "206ED5",
"off": "CACACA"
}
},
"elements": {
"primary": "FFFFFF",
"secondary": "FFFFFF",
"playlist": "011030",
"itemsProgress": "FFFFFF",
"playbackButton": "FFFFFF",
"volumeButton": "FFFFFF",
"skipButton": "FFFFFF",
"settingsButton": "FFFFFF",
"nextPrevButton": "FFFFFF",
"listButton": "FFFFFF",
"timeInfo": "FFFFFF",
"title": "FFFFFF",
"author": "FFFFFF",
"description": "FFFFFF",
"default": "FFFFFF",
"logo": "",
"dividers": "FFFFFF",
"sliderRail": "FFFFFF",
"sliderProgressBar": "EA622B",
"dragger": "FFFFFF",
"item": "FFFFFF"
}
},
"lang": {
"controls": {
"play": "Play",
"pause": "Pause",
"next": "Next",
"back": "Back",
"replay": "Replay",
"volume": "Volume",
"mute": "Mute",
"unmute": "Unmute",
"settings": "Settings",
"chromecast": "ChromeCast",
"airplay": "Airplay",
"playlist": "Related",
"share": "Share Audio"
},
"settings": {
"quality": "Quality",
"autoplay": "Autoplay",
"playbackSpeed": "Speed",
"auto": "Auto",
"off": "Off",
"normal": "Normal"
}
},
"controls": {
"volumeButton": true,
"skipButton": true,
"settingsButton": true,
"nextPrevButton": true,
"listButton": true,
"playbackSpeedOn": true,
"timeInfoOn": true,
"dividersOn": true,
"showHelperButton": false,
"showAutoPlay": false,
"showQualities": false
},
"logo": {
"state": false,
"file": "",
"position": "TOP_RIGHT",
"onClickURL": ""
},
"autopauseOnCuepoint": {
"state": false,
"timeToPause": 0,
"continueUnmuted": false,
"onDesktop": false,
"onMobile": false
},
"jumpBackAfterMidroll": {
"state": false,
"seconds": 3
}
},
"audio": {
"audioId": "{audioId}",
"file": "{file}",
"thumbnail": "{thumbnail}",
"title": "{title}",
"author": "{author}",
"chapterState": false,
"chapterPath": "{chapterPath}",
"adId": null,
"advertising": false,
"ads": null,
"podcast": {
"state": false,
"id": null,
"title": null,
"author": null,
"thumbnail": null,
"audioIndex": 0
}
}
}

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

Top-Level Properties

Field NameTypeDescription
projectIdstringUnique identifier of the project.
configobjectPlayer configuration object.
audioobjectAudio configuration object.

config Properties

Field NameTypeDescription
configIdstringUnique identifier of the player configuration.
biskoIdstringBisko analytics identifier.
recommendedbooleanWhether recommendations are enabled.
autoplaybooleanWhether autoplay is enabled.
volumefloatDefault volume level (0.0 to 1.0).
loopbooleanWhether content loops after finishing.
highlightCurrentAudiobooleanWhether the current audio is highlighted in the playlist.
focusOnAutostartbooleanWhether the player receives focus on autostart.
readQualitiesbooleanWhether quality options are read from the stream.
chromeCastApplicationIdstringChromeCast application identifier.
versionintegerPlayer version identifier.
thumbnailbooleanWhether the thumbnail is displayed.
showPlaylistItemProgressbooleanWhether progress is shown for playlist items.
pauseOtherAudiosbooleanWhether other audio players pause when this one plays.
showPlaylistbooleanWhether the playlist panel is visible.
sizeobjectPlayer size configuration.
playbackRatesarrayAvailable playback speed options.
socialMediaarrayList of social media sharing options.
autostartOnViewableobjectAutostart on viewable configuration.
autopauseOnViewableobjectAuto-pause on viewable configuration.
floatobjectFloat on scroll configuration.
skinobjectPlayer skin and color configuration.
langobjectPlayer localization strings.
controlsobjectPlayer controls visibility configuration.
logoobjectPlayer logo configuration.
autopauseOnCuepointobjectAuto-pause on cue point configuration.
jumpBackAfterMidrollobjectJump back after midroll ad configuration.

size Properties

Field NameTypeDescription
sizeTypestringSize mode of the player (e.g., "RESPONSIVE").
widthintegerWidth of the player in pixels.
heightintegerHeight of the player in pixels.

autostartOnViewable Properties

Field NameTypeDescription
statebooleanWhether autostart on viewable is enabled.
onMobilebooleanWhether autostart on viewable is enabled on mobile.
onDatabooleanWhether autostart on viewable is enabled on mobile data.
percentageViewablefloatPercentage of the player that must be visible to trigger autostart (0.0 to 1.0).

autopauseOnViewable Properties

Field NameTypeDescription
statebooleanWhether auto-pause on viewable is enabled.
percentageViewablefloatPercentage of the player that must be hidden to trigger pause (0.0 to 1.0).

float Properties

Field NameTypeDescription
statebooleanWhether float on scroll is enabled.
onMobilebooleanWhether float on scroll is enabled on mobile.
positionstringFloat position (e.g., "TOP_RIGHT", "BOTTOM_RIGHT").
dismissiblebooleanWhether the floating player can be dismissed.
requiresInteractionbooleanWhether user interaction is required before floating.
styleobjectFloat style configuration (width, border).

controls Properties

Field NameTypeDescription
volumeButtonbooleanWhether the volume button is visible.
skipButtonbooleanWhether the skip forward/backward button is visible.
settingsButtonbooleanWhether the settings button is visible.
nextPrevButtonbooleanWhether the next/previous buttons are visible.
listButtonbooleanWhether the playlist button is visible.
playbackSpeedOnbooleanWhether playback speed control is enabled.
timeInfoOnbooleanWhether time information is displayed.
dividersOnbooleanWhether dividers are displayed between controls.
showHelperButtonbooleanWhether the helper button is visible.
showAutoPlaybooleanWhether the autoplay toggle is visible.
showQualitiesbooleanWhether quality selection is visible.

logo Properties

Field NameTypeDescription
statebooleanWhether the logo is displayed.
filestringURL of the logo image.
positionstringLogo position (e.g., "TOP_RIGHT").
onClickURLstringURL to navigate to when the logo is clicked.

autopauseOnCuepoint Properties

Field NameTypeDescription
statebooleanWhether auto-pause on cue point is enabled.
timeToPauseintegerTime in seconds to pause at the cue point.
continueUnmutedbooleanWhether playback continues unmuted after the cue point.
onDesktopbooleanWhether cue point pausing is enabled on desktop.
onMobilebooleanWhether cue point pausing is enabled on mobile.

jumpBackAfterMidroll Properties

Field NameTypeDescription
statebooleanWhether jump back after midroll is enabled.
secondsintegerNumber of seconds to jump back after a midroll ad.

audio Properties

Field NameTypeDescription
audioIdstringUnique identifier of the audio.
filestringURL of the audio file.
thumbnailstringURL of the audio thumbnail image.
titlestringTitle of the audio.
authorstringAuthor of the audio.
chapterStatebooleanWhether chapters are enabled for the audio.
chapterPathstringURL of the chapter definitions file.
adIdstringIdentifier of the ad schedule associated with the audio.
advertisingbooleanWhether advertising is enabled for the audio.
adsobjectAd configuration object (null when no ad schedule is assigned).
podcastobjectPodcast configuration if the audio belongs to a podcast.

podcast Properties

Field NameTypeDescription
statebooleanWhether podcast mode is enabled.
idstringUnique identifier of the podcast.
titlestringTitle of the podcast.
authorstringAuthor of the podcast.
thumbnailstringURL of the podcast thumbnail image.
audioIndexintegerIndex of the current audio within the podcast.

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