Do you know or have ideas how I can get source video resolution or aspect in videojs?
I have looked vjs.Player, but it just return windows size, not original video size.
Thanks, Andrey
Do you know or have ideas how I can get source video resolution or aspect in videojs?
I have looked vjs.Player, but it just return windows size, not original video size.
Thanks, Andrey
 
    
    <video id="player" onplaying="onplaying()"></video>
<script>
var player = videojs('player', {
  autoplay: true,
  controls: false,
  poster: ''
});
player.src("http://your.video.src");
function onplaying(){
  console.log(player.videoHeight());
  console.log(player.videoWidth());
}
</script>
 
    
    So for
  <video id="video0"
we have
        var vid2 = document.getElementById('video0_flash_api');
        w = vid2.vjs_getProperty("videoWidth");
        h = vid2.vjs_getProperty("videoHeight");
