Classic/VPC 환경에서 이용 가능합니다.
플레이어에 설정한 옵션 정보를 조회합니다.
요청
요청 형식을 설명합니다. 요청 형식은 다음과 같습니다.
메서드 | URI |
---|---|
GET | /api/v1/players/{player_no}/options |
요청 헤더
Video Player Enhancement API에서 공통으로 사용하는 헤더에 대한 정보는 Video Player Enhancement 요청 헤더를 참조해 주십시오.
요청 경로 파라미터
요청 경로 파라미터에 대한 설명은 다음과 같습니다.
필드 | 타입 | 필수 여부 | 설명 |
---|---|---|---|
player_no |
String | Required | 플레이어 번호
|
요청 예시
요청 예시는 다음과 같습니다.
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'
응답
응답 형식을 설명합니다.
응답 바디
응답 바디에 대한 설명은 다음과 같습니다.
필드 | 타입 | 필수 여부 | 설명 |
---|---|---|---|
code |
String | - | 응답 코드 |
message |
String | - | 응답 메시지 |
result |
Object | - | 응답 결과 |
result.env |
String | - | 배포 환경 |
result.option |
Object | - | 플레이어 옵션 정보
|
result.option.touchGestures |
Boolean | - | 터치 제스처 사용 여부
|
result.option.autostart |
Boolean | - | 자동 재생 여부
|
result.option.controlBtn |
Object | - | 컨트롤바 버튼 설정 |
result.option.controlBtn.fullscreen |
Boolean | - | 풀스크린(전체 화면) 버튼 표시 여부
|
result.option.controlBtn.pictureInPicture |
Boolean | - | PIP(미니 플레이어 전환) 버튼 표시 여부
|
result.option.controlBtn.volume |
Boolean | - | 볼륨 조절 버튼 표시 여부
|
result.option.controlBtn.play |
Boolean | - | 플레이 버튼 표시 여부
|
result.option.controlBtn.times |
Boolean | - | 시간 표시 여부
|
result.option.controlBtn.setting |
Boolean | - | 설정 버튼 표시 여부
|
result.option.controlBtn.subtitle |
Boolean | - | 자막 선택 버튼 표시 여부
|
result.option.controlBtn.progressBar |
Boolean | - | 재생바 표시 여부
|
result.option.autoPause |
Boolean | - | 브라우저 비활성 시 자동 정지 여부
|
result.option.seekingPreview |
Boolean | - | 구간 이동 미리 보기 표시 여부
|
result.option.descriptionNotVisible |
Boolean | - | 디스크립션(영상 제목 및 메타데이터 UI 표시) 사용 여부
|
result.option.playRateSetting |
Array | - | 재생 배속 옵션 목록 |
result.option.repeat |
Boolean | - | 반복 재생 여부
|
result.option.startMutedInfoNotVisible |
Boolean | - | 재생 시작 시 음소거 여부
|
result.option.ui |
String | - | 컨트롤 UI 유형
|
result.option.aspectRatio |
String | - | 화면비
|
result.option.controlActiveTime |
Integer | - | 컨트롤바 자동 숨김 시간(밀리초)
|
result.option.muted |
Boolean | - | 음소거 알림창 표시 여부
|
result.option.controls |
Boolean | - | 컨트롤바 사용 여부
|
result.option.progressBarColor |
String | - | 컨트롤바 컬러 |
result.option.keyboardShortcut |
Boolean | - | 키보드 단축키 사용 여부
|
result.option.objectFit |
String | - | 화면 채움 방식
|
result.option.lowLatencyMode |
Boolean | - | 초저지연 모드 사용 여부
|
result.option.lang |
String | - | 언어 설정
|
result.option.visibleWatermark |
Boolean | - | 텍스트 워터 마크 사용 여부
|
result.option.iosFullscreenNativeMode |
Boolean | - | iOS 모바일 사파리에 대응하는 풀스크린(전체 화면) 모드 설정 지원 여부
|
result.option.customBtns |
Array | - | 커스텀 버튼 설정: customBtns |
result.option.watermarkConfig |
Object | - | 텍스트 워터 마크 상세 옵션 설정 |
result.option.watermarkConfig.randPosition |
Boolean | - | 위치 랜덤 여부
|
result.option.watermarkConfig.randPositionInterVal |
Integer | - | 노출 인터벌(밀리초)
|
result.option.watermarkConfig.x |
Integer | - | 수평 오프셋(백분율)
|
result.option.watermarkConfig.y |
Integer | - | 수직 오프셋(백분율)
|
result.option.watermarkConfig.opacity |
Float | - | 투명도
|
customBtns
customBtns
에 대한 설명은 다음과 같습니다.
필드 | 타입 | 필수 여부 | 설명 |
---|---|---|---|
ui |
String | - | 버튼 UI 환경
|
flow |
String | - | 생성 위치
|
position |
String | - | 버튼 위치
|
icon |
String | - | 버튼 이미지 URL |
응답 상태 코드
Video Player Enhancement API에서 공통으로 사용하는 응답 상태 코드에 대한 정보는 Video Player Enhancement 응답 상태 코드를 참조해 주십시오.
응답 예시
응답 예시는 다음과 같습니다.
{
"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
}
}
}
}