getVideoHeight

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

getVideoHeight

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

함수 예시

player.getVideoHeight().then((height)=> { // height : 현재 영상의 native height 반환 }).catch(function(error) { // an error occurred });
 

width, height 한번에 받기

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