getAutopause

Column
promise
T/F
Tags
Autopause 설정 여부 반환 T/F

getAutopause

getAutopause(): Promise<boolean, (UnsupportedError|Error)>
현재 Autopause 설정 상태 반환 T/F
 

함수 예시

player.getAutopause().then(function(autopause) { // 상태 획득 성공 시 // autopause : true or false }).catch(function(error) { switch (error.name) { case 'UnsupportedError': // 현재 플레이어 또는 브라우저에서 autopause를 지원하지 않음. break; default: // some other error occurred break; } });