Available in Classic and VPC
Get information about the options set for a player.
Request
This section describes the request format. The method and URI are as follows:
| Method | URI |
|---|---|
| GET | /api/v1/players/{player_no}/options |
Request headers
For information about the headers common to all Video Player Enhancement APIs, see Video Player Enhancement request headers.
Request path parameters
You can use the following path parameters with your request:
| Field | Type | Required | Description |
|---|---|---|---|
player_no |
String | Required | Player number
|
Request example
The request example is as follows:
curl --location --request GET 'https://vpe.apigw.ntruss.com/api/v1/players/6144/options' \
--header 'x-ncp-apigw-timestamp: {Timestamp}' \
--header 'x-ncp-iam-access-key: {Access Key}' \
--header 'x-ncp-apigw-signature-v2: {API Gateway Signature}' \
--header 'Content-Type: application/json' \
--header 'x-ncp-region_code: KR'
Response
This section describes the response format.
Response body
The response body includes the following data:
| Field | Type | Required | Description |
|---|---|---|---|
code |
String | - | Response code |
message |
String | - | Response message |
result |
Object | - | Response result |
result.env |
String | - | Deployment environment |
result.option |
Object | - | Player option information
|
result.option.touchGestures |
Boolean | - | Touch gesture usage
|
result.option.autostart |
Boolean | - | Automatic playback
|
result.option.controlBtn |
Object | - | Control bar button settings |
result.option.controlBtn.fullscreen |
Boolean | - | Full screen button display
|
result.option.controlBtn.pictureInPicture |
Boolean | - | PIP (switch to mini player) button display
|
result.option.controlBtn.volume |
Boolean | - | Volume control button display
|
result.option.controlBtn.play |
Boolean | - | Play button display
|
result.option.controlBtn.times |
Boolean | - | Time display
|
result.option.controlBtn.setting |
Boolean | - | Settings button display
|
result.option.controlBtn.subtitle |
Boolean | - | Subtitle selection button display
|
result.option.controlBtn.progressBar |
Boolean | - | Progress bar display
|
result.option.autoPause |
Boolean | - | Auto-stop on browser inactivity
|
result.option.seekingPreview |
Boolean | - | Thumbnail preview display
|
result.option.descriptionNotVisible |
Boolean | - | Description (video title and metadata UI) usage
|
result.option.playRateSetting |
Array | - | Playback speed option list |
result.option.repeat |
Boolean | - | Loop playback
|
result.option.startMutedInfoNotVisible |
Boolean | - | Whether to mute upon playback start
|
result.option.ui |
String | - | Control UI type
|
result.option.aspectRatio |
String | - | Aspect ratio
|
result.option.controlActiveTime |
Integer | - | Controlbar auto-hide time (millisecond)
|
result.option.muted |
Boolean | - | Mute indication window display
|
result.option.controls |
Boolean | - | Control bar usage
|
result.option.progressBarColor |
String | - | Control bar color |
result.option.keyboardShortcut |
Boolean | - | Keyboard shortcut usage
|
result.option.objectFit |
String | - | Full screen method
|
result.option.lowLatencyMode |
Boolean | - | Ultra-low latency mode usage
|
result.option.lang |
String | - | Language settings
|
result.option.visibleWatermark |
Boolean | - | Text watermark usage
|
result.option.iosFullscreenNativeMode |
Boolean | - | Support for full screen mode settings for iOS mobile Safari
|
result.option.customBtns |
Array | - | Custom button settings: customBtns |
result.option.watermarkConfig |
Object | - | Text watermark detailed option settings |
result.option.watermarkConfig.randPosition |
Boolean | - | Whether to randomize location
|
result.option.watermarkConfig.randPositionInterVal |
Integer | - | Exposure interval (millisecond)
|
result.option.watermarkConfig.x |
Integer | - | Horizontal offset (percentage)
|
result.option.watermarkConfig.y |
Integer | - | Horizontal offset (percentage)
|
result.option.watermarkConfig.opacity |
Float | - | Transparency
|
customBtns
The following describes customBtns.
| Field | Type | Required | Description |
|---|---|---|---|
ui |
String | - | Button UI environment
|
flow |
String | - | Creation location
|
position |
String | - | Button location
|
icon |
String | - | Button image URL |
Response status codes
For information about the HTTP status codes common to all Video Player Enhancement APIs, see Common Video Player Enhancement response status codes.
Response example
The response example is as follows:
{
"code": "200",
"message": "ok",
"result": {
"env": "dev",
"option": {
"touchGestures": true,
"autostart": true,
"controlBtn": {
"fullscreen": true,
"pictureInPicture": true,
"volume": true,
"play": true,
"times": true,
"setting": true,
"subtitle": false,
"progressBar": true
},
"autoPause": true,
"seekingPreview": true,
"descriptionNotVisible": false,
"playRateSetting": [
0.5,
1,
1.5,
2,
2.5
],
"repeat": false,
"startMutedInfoNotVisible": false,
"ui": "pc",
"aspectRatio": "16/9",
"controlActiveTime": 3000,
"muted": false,
"controls": true,
"progressBarColor": "#4299f5",
"keyboardShortcut": true,
"objectFit": "cover",
"lowLatencyMode": false,
"lang": "ko",
"visibleWatermark": true,
"customBtns": [
{
"ui": "pc",
"flow": "left",
"position": "right-bottom",
"icon": "{Icon URL}"
}
],
"watermarkConfig": {
"randPosition": true,
"randPositionInterVal": 60000,
"x": null,
"y": null,
"opacity": null
}
}
}
}