A basic, working example, please

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
lbrianmcgann
New Cone
New Cone
Posts: 4
Joined: 22 Oct 2011 00:52

A basic, working example, please

Postby lbrianmcgann » 22 Oct 2011 01:05

I have had great difficulty embedding VLC in HTML for use in either Firefox or Safari on Mac OSX, either Snow Leopard or Lion. I have tried the examples of the Wiki, both for the Version <= 0.8.5 API and the Version > 0.8.5.1 API, all without any luck at all.

I am using VLC 32/64 bits Intel Mac, 1.1.12, and Release 1.0.5 of the Web plugin for Intel Mac.

Could someone supply an elemental example that they know works? It would be very much appreciated.

I would very much like to demonstrate the quality of VLC.

Thanks.

Ilasir
Cone that earned his stripes
Cone that earned his stripes
Posts: 139
Joined: 14 Apr 2010 18:57

Re: A basic, working example, please

Postby Ilasir » 27 Oct 2011 10:07

<object id="vlc" width="720px" height="540px" type="application/x-vlc-plugin" volume="50">
<param name="mrl" src="<video.file>" >
</object>
<input type="button" name="Play" onclick="vlc.playlist.play()" />
<input type="button" name="Pause" onclick="vlc.playlist.togglePause()" />
<input type="button" name="Stop" onclick="vlc.playlist.stop()" />
<input type="button" name="Fullscreen" onclick="vlc.playlist.toggleFullscreen()" />

Should look basically like that.

lbrianmcgann
New Cone
New Cone
Posts: 4
Joined: 22 Oct 2011 00:52

Re: A basic, working example, please

Postby lbrianmcgann » 28 Oct 2011 15:01

Thanks very much for the reply. Unfortunately, no luck.

Here is what I have:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>VLC Test Page</title>
</head>
<body>
<object id="vlc" width="720px" height="540px" type="application/x-vlc-plugin" volume="50">
<param name="mrl" src="http://192.168.1.4/~brianm/playerTest/TestMovie.mp4" />
</object>
<input type="button" name="Play" onclick="vlc.playlist.play()" />
<input type="button" name="Pause" onclick="vlc.playlist.togglePause()" />
<input type="button" name="Stop" onclick="vlc.playlist.stop()" />
<input type="button" name="Fullscreen" onclick="vlc.playlist.toggleFullscreen()" />
</body>
</html>

On Firefox, a blank page. On Safari, a blank for the player, followed by the four buttons. On Opera, a black background for the player spot, with "Waiting for video" in the center, followed by the four buttons.

Do you see something different?

toett
New Cone
New Cone
Posts: 3
Joined: 20 Sep 2011 11:49

Re: A basic, working example, please

Postby toett » 31 Oct 2011 13:06

I think you need to start your web browser in 32-bit mode, since VLC web plugin does not support 64-bit.

In Finder, Go to Applications folder, ctrl click on FireFox, select "show info", check box to open in 32-bit.

lbrianmcgann
New Cone
New Cone
Posts: 4
Joined: 22 Oct 2011 00:52

Re: A basic, working example, please

Postby lbrianmcgann » 04 Nov 2011 11:37

Thanks for the reply, but still no go. Do you actually have yours working? Does anyone actually have a Mac working with the plugin?

toett
New Cone
New Cone
Posts: 3
Joined: 20 Sep 2011 11:49

Re: A basic, working example, please

Postby toett » 08 Nov 2011 12:56

Yes..

VLC web plugin 1.0.5 and Firefox 7 in 32-bit mode on a MBP with Lion.

Works OK, but firefox crashes after closing the window with VLC embedded.


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 6 guests