getCuePoints

Column
promise
array
Tags
추가된 모든 큐포인트 반환

getCuePoints

getCuePoints(): Promise<array, (UnsupportedError|Error)>
영상에 추가된 큐포인트 배열 반환.

cuepoint object 구조

{ "time": 15, "data": { "customKey": "customValue" }, "id": "09ecf4e4-b587-42cf-ad9f-e666b679c9ab" }
 

예시 코드

player.getCuePoints().then((cuePoints) => { // cuePoints : 큐포인트 배열 }).catch(function(error) { switch (error.name) { case 'UnsupportedError': // 현재 플레이어 혹은 브라우저에서 큐포인트 지원 안하는 경우 break; default: // some other error occurred break; } });