Get player options
- Print
- PDF
Get player options
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
The following describes how to get the options set for a player.
Request
GET {API_URL}/players/{player_no}/options
Request parameter
Field name | Required | Type | Restrictions | Description |
---|---|---|---|---|
player_no | Y | Integer | Path Parameter | Player number |
Response
Field name | Type | Description | Note |
---|---|---|---|
result | Object | ||
result.env | String | Environment | |
result.options | String(json) | Set options |
Player option information
Field name | Required | Type | Limit | Description |
---|---|---|---|---|
player_no | Y | Integer | Player number | |
option | Y | Object(json) | Player option information | |
option.aspectRatio | N | String | Paid/free | Aspect ratio, default: 16/9, Options: 16/9, 4/3, 1/1, 9/16, 21/9 |
option.autoPause | N | Boolean | Paid/free | Auto-stop playback when disabled |
option.autostart | N | Boolean | Paid/free | Whether to autoplay, default: TRUE |
option.repeat | N | Boolean | Paid/free | Video looping, default: FALSE |
option.lang | N | String | Paid/free | UI language settings, default: auto Options: auto, ko, en, ja |
option.muted | N | Boolean | Paid/free | Mute, default: FALSE |
option.objectFit | N | String | Paid/free | Video fit-to-frame, default: contain, Options: contain, cover, fill |
option.controlActiveTime | N | Integer | Paid/free | Control bar activation time (ms) Default: 3000 |
option.controls | N | Boolean | Paid/free | Whether to use the control bar, default: TRUE |
option.controlBtn | N | Object | Paid | Control bar button visibility settings, changeable for paid only |
option.controlBtn.fullscreen | N | Boolean | Paid | Full screen, changeable for paid only, default: TRUE |
option.controlBtn.pictureInPicture | N | Boolean | Paid | Mini player, changeable for paid only, default: TRUE |
option.controlBtn.play | N | Boolean | Paid | Play button visibility, changeable for paid only, default: TRUE |
option.controlBtn.times | N | Boolean | Paid | Time display, changeable for paid only, default: TRUE |
option.controlBtn.volume | N | Boolean | Paid | Volume adjustment, changeable for paid only, default: TRUE |
option.controlBtn.setting | N | Boolean | Paid | Settings button visibility, changeable for paid only, default: TRUE |
option.controlBtn.subtitle | N | Boolean | Paid | Subtitle control button visibility, changeable for paid only, default: TRUE |
option.controlBtn.progressBar | N | Boolean | Paid | Progress bar usage, changeable for paid only, default: TRUE |
option.descriptionNotVisible | N | Boolean | Paid | Hide video metadata UI, metadata can only be set for paid, default: FALSE |
option.playRateSetting | N | Array | Paid | Double-speed selection options Changeable for paid only, default: [0.5, 0.75, 1, 1.5, 2] |
option.progressBarColor | N | String | Paid | Control bar color, changeable for paid only Default: #4299f5 |
option.seekingPreview | N | Boolean | Paid | Thumbnail preview, default: TRUE |
option.setStartTime | N | String | Paid | First release date |
option.startMutedInfoNotVisible | N | Boolean | Paid | Mute indication, default: FALSE |
option.keyboardShortcut | N | Boolean | Paid | Keyboard shortcuts, default: TRUE |
option.touchGestures | N | Boolean | Paid | Touch gesture activation |
option.ui | N | String | Paid | UI settings, default: all Configurable for paid only: all, mobile, pc |
option.lowLatencyMode | N | Boolean | Paid | LL-HLS ultra-latency mode support, keeping live video always in the latest segment Default: FALSE |
option.customBtns | N | Array | Paid | Custom button addition (up to 4) |
option.customBtns.ui | Y | String | Paid | Custom button device environment UI (PC, mobile) |
option.customBtns.position | Y | String | Paid | Custom button location settings (left-top, left-bottom, right-top, right-bottom) |
option.customBtns.flow | N | String | Paid | Custom button creation location settings (left, right, default: left) |
option.customBtns.icon | Y | String | Paid | Custom button image URL settings |
Request example
GET /api/v1/players/option?player_no=1
HOST: vpe.apigw.ntruss.com
Content-Type: application/json
x-ncp-apigw-timestamp:1521787414578
x-ncp-iam-access-key:6uxz1nKkcYwUjWRG5Q1V7NsW0i5jErlu2NjBXXgy
x-ncp-apigw-signature-v2:iJFK773KH0WwQ79PasqJ+ZGixtpDQ/abS57WGQdld2M=
x-ncp-region_code:KR
Success code
HttpStatusCode | Code | Message |
---|---|---|
200 | 200 | ok |
Error code
HttpStatusCode | Code | Message | Description |
---|---|---|---|
200 | 4601 | Query string player_no is missing. | |
200 | 4801 | No player information. |
Response example
HTTP/1.1 200 OK
Server: nginx
Date: Fri, 26 Feb 2021 09:53:32 GMT
Content-Type: application/json;charset=utf-8
Connection: keep-alive
Access-Control-Allow-Origin: *
x-ncp-trace-id: 36c9k60om4p3238cpmc9gm4cj4
{
"code": "string",
"message": "string",
"result": {
"env": "string",
"option": {
"aspectRatio": "string",
"autoPause": true,
"autostart": true,
"controlActiveTime": 0,
"controlBtn": {
"fullscreen": true,
"pictureInPicture": true,
"play": true,
"setting": true,
"times": true,
"volume": true,
"subtitle": true,
"progressBar": true
},
"controls": true,
"descriptionNotVisible": true,
"keyboardShortcut": true,
"muted": true,
"objectFit": "string",
"playRateSetting": [
0
],
"progressBarColor": "string",
"repeat": true,
"seekingPreview": true,
"startMutedInfoNotVisible": true,
"touchGestures": true,
"ui": "string"
}
}
}
Was this article helpful?