getCurrentTime

Column
promise
Tags
현재 재생위치 반환

getCurrentTime

getCurrentTime(): Promise<number, Error>
현재 재생위치(초)를 반환.
 

함수 예시

player.getCurrentTime().then((seconds) => { // seconds : 현재 재생위치 in seconds }).catch(function(error) { // an error occurred });