getVideoWidth

Column
promise
Tags
영상의 원본 width 반환 (플레이어 크기 아님!)

getVideoWidth

getVideoWidth(): Promise<number, Error>
영상의 원본 width 반환 (플레이어 크기 아님!)
 

함수 예시

player.getVideoWidth().then((width)=>{ // width : 현재 재생중인 영상의 native width 반환 }).catch(function(error) { // an error occurred });
 

width, height 한번에 받기

Promise.all([player.getVideoWidth(), player.getVideoHeight()]).then((dimensions)=>{ var width = dimensions[0]; var height = dimensions[1]; });