removeCuePoint

Column
promise
Tags
큐포인트 제거

removeCuePoint

removeCuePoint(id: string): Promise<string, (UnsupportedError|InvalidCuePoint|Error)>
특정 id를 가진 큐포인트 제거
 

큐포인트id 획득 방법

  • addCuePoint() : 큐포인트 추가 후 해당 큐포인트id 반환
  • getCuePoints() : 모든 큐포인트 목록 반환

params

id : 제거할 큐포인트 id
 

함수 예시

player.removeCuePoint('큐포인트id')
player.removeCuePoint('09ecf4e4-b587-42cf-ad9f-e666b679c9ab').then(function(id) { // cue point was removed successfully }).catch(function(error) { switch (error.name) { case 'UnsupportedError': // cue points are not supported with the current player or browser break; case 'InvalidCuePoint': // a cue point with the id passed wasn’t found break; default: // some other error occurred break; } });