videojs获取视频真实宽高

//顺便将视频的宽高尺寸返回到父组件
let size = {}
size.width = this.player.videoWidth();
size.height = this.player.videoHeight();
console.log("正在播放视频的尺寸3:",size);
this.$emit("videoSize2", size);

你可能感兴趣的:(前端,javascript,html,videojs,视频真实宽高,video真实宽高)