Skip to main content

GET All Select Options

Overview


The following table contains important information about the GET method in regards to receiving all select options.

GET All Select Options
MethodGET
URL or Endpoint​/api/projects/projectId/players/options
HeadersAuthorization
ParametersprojectId
BodyNot Applicable

The description of the URL parameter is as follows:

projectId URL Parameter
URL Parameter NameprojectId
MandatoryYes
Typestring
DescriptionUnique Id of the project

Request Body

The request does not contain a request body.

Response

{
"success": true,
"errors": [],
"messages": [],
"result": {
"playerSizeTypes": [
{
"id": 1,
"name": "Responsive"
},
{
"id": 2,
"name": "Fixed"
}
],
"preloadOptions": [
{
"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."
},
{
"id": 2,
"name": "Quick Start (default)",
"value": "metadata",
"tooltipText": "For the fastest startup time. When the player becomes viewable or if it's the only player on the embedded page, the player will load the media's metadata and up to one segment."
},
{
"id": 3,
"name": "HighQuality",
"value": "auto",
"tooltipText": "For the fastest startup time with the highest playback quality. When the player becomes viewable or if it's the only player embedded on the page, the player will preload up to 30 seconds in the background."
}
],
"defaultBandwidthEstimateOptions": [
{
"id": 1,
"name": "None",
"value": "0"
},
{
"id": 2,
"name": "LTE (1mb/s)",
"value": "1000000"
},
{
"id": 3,
"name": "Standard Definition Broadband (2mb/s)",
"value": "2000000"
},
{
"id": 4,
"name": "High Definition Broadband (5mb/s)",
"value": "5000000"
}
],
"sharingTypes": [
{
"id": 1,
"name": "Page URL",
"value": "URL"
},
{
"id": 2,
"name": "Page URL & IFrame",
"value": "URL&IFrame"
}
],
"castingOptions": [
{
"id": 1,
"name": "Chromecast",
"icon": "Redirect"
},
{
"id": 2,
"name": "Airplay",
"icon": "Redirect"
}
],
"responsiveSizeOptions": [
{
"id": 1,
"name": "16:9"
},
{
"id": 2,
"name": "16:10"
},
{
"id": 3,
"name": "9:16"
},
{
"id": 4,
"name": "4:3"
},
{
"id": 5,
"name": "3:2"
},
{
"id": 6,
"name": "1:1"
},
{
"id": 7,
"name": "2.4:1"
}
],
"floatPositionOptions": [
{
"id": 1,
"name": "Top right (default)",
"value": "TOP_RIGHT"
},
{
"id": 2,
"name": "Top left",
"value": "TOP_LEFT"
},
{
"id": 3,
"name": "Bottom right",
"value": "BOTTOM_RIGHT"
},
{
"id": 4,
"name": "Bottom left",
"value": "BOTTOM_LEFT"
}
],
"logoPositionOptions": [
{
"id": 1,
"name": "Top right (default)",
"value": "TOP_RIGHT"
},
{
"id": 2,
"name": "Top left",
"value": "TOP_LEFT"
},
{
"id": 3,
"name": "Bottom right",
"value": "BOTTOM_RIGHT"
},
{
"id": 4,
"name": "Bottom left",
"value": "BOTTOM_LEFT"
},
{
"id": 5,
"name": "Control Bar",
"value": "CONTROL_BAR"
}
],
"releaseChannels": [
{
"id": 1,
"name": "v1.1",
"originalPath": "vpplayer/templates/v151/vp-player-dev.js",
"templateOriginalPath": "https://vp-dev.gjirafa.net/vps/vpplayer/templates/v151/vp-player-dev.js"
},
{
"id": 2,
"name": "v1.2",
"originalPath": "vpplayer/templates/v151/vp-player-dev.js",
"templateOriginalPath": "https://vp-dev.gjirafa.net/vps/vpplayer/templates/v151/vp-player-dev.js"
},
{
"id": 3,
"name": "v1.3",
"originalPath": "vpplayer/templates/v13/vp-player.js",
"templateOriginalPath": "https://vp-dev.gjirafa.net/vps/vpplayer/templates/v13/vp-player.js"
},
{
"id": 4,
"name": "v1.4",
"originalPath": "vpplayer/templates/v14/vp-player.js",
"templateOriginalPath": "https://vp-dev.gjirafa.net/vps/vpplayer/templates/v14/vp-player.js"
},
{
"id": 5,
"name": "v1.4.2",
"originalPath": "vpplayer/templates/v142/vp-player.js",
"templateOriginalPath": "https://vp-dev.gjirafa.net/vps/vpplayer/templates/v142/vp-player.js"
},
{
"id": 6,
"name": "v1.4.3",
"originalPath": "vpplayer/templates/v143/vp-player.js",
"templateOriginalPath": "https://vp-dev.gjirafa.net/vps/vpplayer/templates/v143/vp-player.js"
},
{
"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"
},
{
"id": 8,
"name": "v1.5.1",
"originalPath": "vpplayer/templates/v151/vp-player-dev.js",
"templateOriginalPath": "https://vp-dev.gjirafa.net/vps/vpplayer/templates/v151/vp-player-dev.js"
},
{
"id": 9,
"name": "v1.5.2",
"originalPath": "vpplayer/templates/v152/vp-player-dev.js",
"templateOriginalPath": "https://vp-dev.gjirafa.net/vps/vpplayer/templates/v152/vp-player-dev.js"
}
],
"adSchedules": [
{
"id": 1096,
"name": "Test vmap",
"value": null
},
{
"id": 1097,
"name": "Test 1.1 midrolls",
"value": null
},
{
"id": 1098,
"name": "Test multi midrolls ",
"value": null
},
{
"id": 1099,
"name": "lumi",
"value": null
},
{
"id": 1100,
"name": "Preroll & Postroll",
"value": null
},
{
"id": 1101,
"name": "Preroll, 2x Midrolls & Postroll",
"value": null
},
{
"id": 1102,
"name": "AdSchedule With same preroll and postroll",
"value": null
},
{
"id": 1103,
"name": "New Ad Schedule - Breror",
"value": null
},
{
"id": 7,
"name": "AdSchedule2",
"value": null
},
{
"id": 1104,
"name": "New Ad Schedule - VAST",
"value": null
},
{
"id": 9,
"name": "AdSchedule2",
"value": null
},
{
"id": 10,
"name": "AdSchedule10",
"value": null
},
{
"id": 11,
"name": "AdSchedule11",
"value": null
},
{
"id": 12,
"name": "AdSchedule12",
"value": null
},
{
"id": 13,
"name": "AdSchedule13",
"value": null
},
{
"id": 16,
"name": "AdSchedule16",
"value": null
},
{
"id": 23,
"name": "AdSchedule23",
"value": null
},
{
"id": 28,
"name": "",
"value": null
},
{
"id": 30,
"name": "",
"value": null
},
{
"id": 32,
"name": "",
"value": null
},
{
"id": 34,
"name": "",
"value": null
},
{
"id": 35,
"name": null,
"value": null
},
{
"id": 52,
"name": "AdSchedule10",
"value": null
},
{
"id": 61,
"name": "Ad Schedule ",
"value": null
},
{
"id": 62,
"name": "Ad Schedule ",
"value": null
},
{
"id": 64,
"name": "Waterfall Tag",
"value": null
},
{
"id": 66,
"name": "Waterfall Tag",
"value": null
},
{
"id": 67,
"name": "Waterfall Tag",
"value": null
},
{
"id": 68,
"name": "Waterfall Tag 1",
"value": null
},
{
"id": 69,
"name": "Waterfall Tag 1",
"value": null
},
{
"id": 70,
"name": "Waterfall Tag",
"value": null
},
{
"id": 71,
"name": "Waterfall Tag",
"value": null
},
{
"id": 72,
"name": "Waterfall Tag test",
"value": null
},
{
"id": 73,
"name": "Ad Schedule Create",
"value": null
},
{
"id": 74,
"name": "Test Ad Schedule",
"value": null
},
{
"id": 82,
"name": "Waterfall URLs Test",
"value": null
},
{
"id": 94,
"name": "Test w/ ad breaks",
"value": null
},
{
"id": 95,
"name": "TEst front 1",
"value": null
},
{
"id": 96,
"name": "test 2 front",
"value": null
},
{
"id": 100,
"name": "Test Front ylberi",
"value": null
},
{
"id": 102,
"name": "Ad schedule ylber",
"value": null
},
{
"id": 110,
"name": "Test Ad Schedule FRONT",
"value": null
},
{
"id": 121,
"name": "test ad schedule njomzaaaaaaa",
"value": null
},
{
"id": 1093,
"name": "test ylber ad schedule",
"value": null
},
{
"id": 1095,
"name": "test midrolls",
"value": null
}
],
"socialNetworks": [
{
"id": 1,
"name": "Facebook",
"icon": "FacebookIcon"
},
{
"id": 2,
"name": "LinkedIn",
"icon": "LinkedinIcon"
},
{
"id": 3,
"name": "Pinterest",
"icon": "FigmaIcon"
},
{
"id": 4,
"name": "Reddit",
"icon": null
},
{
"id": 5,
"name": "Tumblr",
"icon": null
},
{
"id": 6,
"name": "Twitter",
"icon": "TwitterIcon"
},
{
"id": 7,
"name": "Email",
"icon": "MailIcon"
}
]
},
"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.
playerSizeTypesarray[Object]Returns the player size types as an array of objects.
idinteger($int32)The id of the player size type.
namestringThe name of the player size type.
preloadOptionsarray[Object]Returns the preload options as an array of objects.
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.
defaultBandwidthEstimateOptionsarray[Object]Returns the default bandwidth estimate options as an array of objects.
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.
sharingTypesarray[Object]Returns the sharing types as an array of objects.
idinteger($int32)The id of the sharing type.
namestringThe name of the sharing type.
valuestringThe value of the sharing type.
castingOptionsarray[Object]Returns the casting options as an array of objects.
idinteger($int32)The id of the casting option.
namestringThe name of the casting option.
responsiveSizeOptionsarray[Object]Returns the responsive size options as an array of objects.
idinteger($int32)The id of the responsive size option.
namestringThe name of the responsive size option.
floatPositionOptionsarray[Object]Returns the float position options as an array of objects.
idinteger($int32)The id of the float position option.
namestringThe name of the float position option.
valuestringThe value of the float position option.
logoPositionOptionsarray[Object]Returns the logo position options as an array of objects.
idinteger($int32)The id of the logo position option.
namestringThe name of the logo position option.
valuestringThe value of the logo position option.
releaseChannelsarray[Object]Returns the release channels as an array of objects.
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.
adSchedulesarray[Object]Returns the ad schedules as an array of objects.
idinteger($int32)The id of the ad schedule.
namestringThe name of the ad schedule.
valuestringThe value of the ad schedule.
socialNetworksarray[Object]Returns the social networks as an array of objects.
idinteger($int32)The id of the social network.
namestringThe name of the social network.
iconstringThe icon of the social network.
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