Web wrapper for AXVLC

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
zpvs
New Cone
New Cone
Posts: 4
Joined: 28 Jul 2013 10:32

Web wrapper for AXVLC

Postby zpvs » 28 Jul 2013 10:44

I created for myself because existing not satisfied. Do not judge strictly, I'm not a guru in this. If interested, use.
Take on github: https://github.com/zpvs/hplayer
Demo view: http://hplayer.hmscript.net/

I beg your forgiveness for the bad English.

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: Web wrapper for AXVLC

Postby Jean-Baptiste Kempf » 29 Jul 2013 12:16

<3 OMG thanks a LOT.

Can we use that as an official webplugin?
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.

zpvs
New Cone
New Cone
Posts: 4
Joined: 28 Jul 2013 10:32

Re: Web wrapper for AXVLC

Postby zpvs » 29 Jul 2013 14:57

<3 OMG thanks a LOT.

Can we use that as an official webplugin?
yes of course.
If you want I can make a complete documentation with examples.

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: Web wrapper for AXVLC

Postby Jean-Baptiste Kempf » 29 Jul 2013 15:44

This is just a JS layer above it, right?

Did you try with windowless on?
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.

zpvs
New Cone
New Cone
Posts: 4
Joined: 28 Jul 2013 10:32

Re: Web wrapper for AXVLC

Postby zpvs » 29 Jul 2013 15:52

This is just a JS layer above it, right?

Did you try with windowless on?
JS + CSS wrapper that performs basic operations.

windowless can be included by adding the windowless: true - but have been seen using a small problem with changing the screen. By the way while power windowless Fullscreen API is used browsers to display on the screen.

Here is a partial sdes documentation for startup parameters. http://hmscript.net/portfolio/hplayer/

hax001
Blank Cone
Blank Cone
Posts: 20
Joined: 27 Aug 2013 01:38

Re: Web wrapper for AXVLC

Postby hax001 » 27 Aug 2013 01:55

Is it possible to put a div over top of this and capture all mouse events - or another way of doing this?

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: Web wrapper for AXVLC

Postby Jean-Baptiste Kempf » 28 Aug 2013 00:29

With windowless, yes.
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.

hax001
Blank Cone
Blank Cone
Posts: 20
Joined: 27 Aug 2013 01:38

Re: Web wrapper for AXVLC

Postby hax001 » 28 Aug 2013 16:24

However in IE there are issues with this. I have set my DIV to extend past the borders of the video, and have a real-time X,Y display on mouse move. In IE, when over the video, the update is staggered.

I set allowfullscreen - no/false:

Code: Select all

<object id="vlc" type="application/x-fb-vlc" width="352" height="288" classid="clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921" codebase="http://download.videolan.org/pub/videolan/vlc/last/win32/axvlc.cab" > <param name="windowless" value="true" /> <param name="bgcolor" value="#0b0" /> <param name="src" value="rtsp://10.120.7.193/stream1" /> <param name="AutoPlay" value="True" /> <param name="version" value="VideoLAN.VLCPlugin.2" /> <param name="toolbar" value="false" /> <param name="height" value="500" /> <param name="width" value="500" /> <param name="allowfullscreen" value="false"/> <embed id="vlc" bgcolor="#00bb00" type="application/x-vlc-plugin" pluginspage="http://www.videolan.org" windowless="true" version="VideoLAN.VLCPlugin.2" width="500" height="500" loop="yes" toolbar="no" autoplay="yes" target="rtsp://10.120.7.193/stream1" allowfullscreen="no" /> </object>
I created a double-click JS event:

Code: Select all

.mousedown(function (event) { switch (event.which) { case 1: // left // now if mouse is moved, return new relative positions DidClick.active(); if (DidClick.count == 2) { $("#clicked").html("double-left click"); $("#zoomFactor").html("Zoom In (click)").css("display", "inline").fadeOut("slow"); } else { $("#clicked").html("left click"); //console.log("click..." + n++); if (!buttonClick) { relativePosition.X = relativeStartPosition.X; relativePosition.Y = relativeStartPosition.Y; } buttonClick = true; } break; . . .
It quickly displays "Zoom In (click)" in Chrome, but in IE, it makes the video full-screen. What am I missing?

hax001
Blank Cone
Blank Cone
Posts: 20
Joined: 27 Aug 2013 01:38

Re: Web wrapper for AXVLC

Postby hax001 » 28 Aug 2013 18:36

I created for myself because existing not satisfied. Do not judge strictly, I'm not a guru in this. If interested, use.
Take on github: https://github.com/zpvs/hplayer
Demo view: http://hplayer.hmscript.net/

I beg your forgiveness for the bad English.
Looks great. However some issues with this in IE:

The following error is seen when using the plugin in IE:

CSS3114: @font-face failed OpenType embedding permission check. Permission must be Installable.
fontawesome-webfont.ttf

Running on IIS, and adding the following to web.config did not fix the problem:

Code: Select all

<system.webServer> <httpProtocol> <customHeaders> <add name="Access-Control-Allow-Origin" value="*" /> <add name="Access-Control-Allow-Methods" value="GET,PUT,POST,DELETE,OPTIONS" /> <add name="Access-Control-Allow-Headers" value="Content-Type" /> </customHeaders> </httpProtocol> </system.webServer>
One suggested solution is to add the mime type to IIS. However this webfont should be removed all together to make it better platform-agnostic.

The video player also does not appear in IE.

noone2407
New Cone
New Cone
Posts: 1
Joined: 05 Oct 2013 14:13

Re: Web wrapper for AXVLC

Postby noone2407 » 05 Oct 2013 14:30

Hello, thank you very much for your wrapper, I have a problem. How can I show buffering and time of that player?


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 13 guests