vlc.video.width vlc.video.height activeX

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
Realgigabyte
New Cone
New Cone
Posts: 4
Joined: 13 Jan 2017 11:44

vlc.video.width vlc.video.height activeX

Postby Realgigabyte » 13 Jan 2017 11:52

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?

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

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

Postby Jean-Baptiste Kempf » 22 Jan 2017 23:51

This is a bug then.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

da2424
Cone that earned his stripes
Cone that earned his stripes
Posts: 310
Joined: 16 Apr 2013 16:57

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

Postby da2424 » 30 Jan 2017 20:20

I can't reproduce it.
Could you test it with a VLC 3.0 nightly build?

truth
Blank Cone
Blank Cone
Posts: 14
Joined: 06 Apr 2017 09:55

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

Postby truth » 06 Apr 2017 10:19

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.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

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

Postby Jean-Baptiste Kempf » 14 Apr 2017 14:57

Yes, you need a preparse function.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

truth
Blank Cone
Blank Cone
Posts: 14
Joined: 06 Apr 2017 09:55

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

Postby truth » 19 Apr 2017 11:39

and when will the pre-parse function be available? or does it already exist?

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

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

Postby Jean-Baptiste Kempf » 11 Jun 2017 17:20

It does not yet.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 10 guests