destroy

Column
promise
Tags
플레이어 제거 ( DOM에서 )

destroy

destroy(): Promise<void, Error>
Cleanup & Remove it from the DOM. 플레이어를 돔에서 아예 제거함.
플레이어는 이제 사용 불가하고, 다른 작업을 하려면 다시 생성해야 한다.

함수 예시

player.destroy().then(function() { // the player was destroyed }).catch(function(error) { // an error occurred });