Page 1 of 1

vlc.video.width vlc.video.height activeX

Posted: 13 Jan 2017 11:52
by Realgigabyte
I just noticed that on the ActiveX plugin the vlc.video.width and height returns 0 on some kind of videos.
It works fine normally with most kind of videos but I just noticed that it returns 0 when playing mpeg videos.

I tested the same mpeg file on the VLC player but there the video sizes are shown correctly.

Can anybody take a look?

Re: vlc.video.width vlc.video.height activeX

Posted: 22 Jan 2017 23:51
by Jean-Baptiste Kempf
This is a bug then.

Re: vlc.video.width vlc.video.height activeX

Posted: 30 Jan 2017 20:20
by da2424
I can't reproduce it.
Could you test it with a VLC 3.0 nightly build?

Re: vlc.video.width vlc.video.height activeX

Posted: 06 Apr 2017 10:19
by truth
We can reproduce this with the 3.0 nightly build however in our case it depends on when .width/.height are called. If either is called before the video is played but after it is added to the playlist, then .width/.height are always 0. However, after the video starts playing, eventually .width/.height will return the native video resolution. Unfortunately, if any resizing must be done to the parent window before playing begins, then we are up excretions waterways without a means of propulsion.

I would be a great benefit to add pre-parsing functionality to this component.

Re: vlc.video.width vlc.video.height activeX

Posted: 14 Apr 2017 14:57
by Jean-Baptiste Kempf
Yes, you need a preparse function.

Re: vlc.video.width vlc.video.height activeX

Posted: 19 Apr 2017 11:39
by truth
and when will the pre-parse function be available? or does it already exist?

Re: vlc.video.width vlc.video.height activeX

Posted: 11 Jun 2017 17:20
by Jean-Baptiste Kempf
It does not yet.