How to use the x-vlc-plugin in VLC 3.0

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
tranzitwww
New Cone
New Cone
Posts: 8
Joined: 13 Aug 2012 08:26

How to use the x-vlc-plugin in VLC 3.0

Postby tranzitwww » 23 Feb 2018 23:19

Hi,

I've been using VLC plugin prior to this version to play RTSP streams from multiple IP cameras in a HTA Applications (is using Internet Explorer libraries).
From version 3.0 the JavaScript code didn't work anymore. Is there any documentation how to do this?

I've found this, but nothing related to version 3.0
https://wiki.videolan.org/ActiveX/
https://wiki.videolan.org/ActiveX/HTML/
https://wiki.videolan.org/Documentation:WebPlugin/
<OBJECT ID="VLC_OBJ" TYPE="application/x-vlc-plugin" CLASSID="clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921" WIDTH="379" HEIGHT="213" EVENTS="True">
<PARAM NAME="MRL" VALUE="rtsp://10.1.1.12/stream1">
<PARAM NAME="Version" VALUE="VideoLAN.VLCPlugin.2">
<PARAM NAME="Visible" VALUE="True">
<PARAM NAME="AutoPlay" VALUE="True">
<PARAM NAME="AutoLoop" VALUE="True">
<PARAM NAME="Toolbar" VALUE="False">
<PARAM NAME="Volume" VALUE="0">
</OBJECT>

<SCRIPT LANGUAGE="Javascript">
var vlc = document.getElementById("VLC_OBJ");
vlc.audio.Volume=0;
vlc.audio.Mute=true;
vlc.video.aspectRatio="16:9";

[...]

vlc.video.takeSnapshot()
vlc.video.toggleFullscreen()
vlc.playlist.play()
vlc.playlist.togglePause()
</SCRIPT>

Also how can I use "transform" video filter to "hflip" or rotate the video (In any VLC version, if is supported)?
I've tried styles, url options, but nothing seems to work.
var options = [":video-filter=transform", ":transform-type=hflip"];
vlc.playlist.stop();
vlc.playlist.clear();
vlc.playlist.add(URL, "", options);
vlc.playlist.play();

OR
vlc.style.transform="rotate3d(1,2,1, 90deg)";
vlc.style.msTransform ="rotate(90deg)"; //IE
vlc.style.webkitTransform="rotate3d(1,2,1, 90deg)";
Thanks!

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: How to use the x-vlc-plugin in VLC 3.0

Postby Jean-Baptiste Kempf » 24 Feb 2018 18:24

No, there are no changes, in theory, to the usage of the plugin.

If it does not work, then file a bug.
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.

tranzitwww
New Cone
New Cone
Posts: 8
Joined: 13 Aug 2012 08:26

Re: How to use the x-vlc-plugin in VLC 3.0

Postby tranzitwww » 24 Feb 2018 20:48

Thanks Jean
Because you said that, I've uninstall VLC v2.2.8 and then clean install VLC v3.0.0 and now it is working. :)
Before this I had VLC v2.2.8 upgraded to 3.0.0. witch didn't worked and later downgraded to v2.2.8.

Now, The second issue...
How can I use "transform" video filter to "hflip" or rotate the video with JavaScript for that ActiveX object

tranzitwww
New Cone
New Cone
Posts: 8
Joined: 13 Aug 2012 08:26

Re: How to use the x-vlc-plugin in VLC 3.0

Postby tranzitwww » 03 Mar 2018 11:37

Ok. Thanks.
I presume that in this moment there is no option to achieve this propose (To rotate, hflip, vflip the video content for VLC ActiveX objects)


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 58 guests