VLC HTML CODE ??

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.
waheguru_son
New Cone
New Cone
Posts: 3
Joined: 27 Mar 2007 06:42

VLC HTML CODE ??

Postby waheguru_son » 27 Mar 2007 06:45

CAN ITS POSSIBLE TO ADD VLC PLAYER IN MY WEB PAGE ,LIKE WMP,WINAMP.OR REAL PLAYER .

I WANT HTML VLC PLAYER CODE FOR MY SITE

divx118
Blank Cone
Blank Cone
Posts: 95
Joined: 22 Jun 2006 18:19

Postby divx118 » 27 Mar 2007 17:51

:) Yes it is possible but the people who visit your website must have vlc installed with the activeX for more info look here viewtopic.php?t=29654 and an example page is here http://people.videolan.org/~damienf/plugin-0.8.6.html
Look in the source of the page to see how the object is integrated and how the functions are called.

PS typing with Caps on is not very polite.

Maurice 8)

waheguru_son
New Cone
New Cone
Posts: 3
Joined: 27 Mar 2007 06:42

Postby waheguru_son » 27 Mar 2007 21:31

sorry ,i can understand not working for me .i use internet explorer

can u create html code for me and add here .please , i really need this

divx118
Blank Cone
Blank Cone
Posts: 95
Joined: 22 Jun 2006 18:19

Postby divx118 » 27 Mar 2007 22:21

Well ok then below is a very simple htm page to play the NASA stream with a simple stop and play button. Please be patient the stream needs a few seconds to load.
Of course you can also change the url to some local media file.
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Simple VLC activeX page playing Nasa stream</title>
</head>

<body>
<!--
Insert VideoLAN.VLCPlugin.2
-->
<div>
<OBJECT classid="clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921"
codebase="http://downloads.videolan.org/pub/video ... on=0,8,6,0"
width="640"
height="480"
id="vlc"
events="True">
<!--below you can put your url to the video the current one is the NASA stream-->
<param name="MRL" value="http://playlist.yahoo.com/makeplaylist. ... ent=149773" />
<param name="ShowDisplay" value="True" />
<param name="AutoLoop" value="False" />
<param name="AutoPlay" value="True" />
<param name="Volume" value="50" />
<param name="StartTime" value="0" />

</OBJECT>
</div>
<INPUT type=button id="Play" value=" Play " onClick='document.getElementById("vlc").playlist.play();'>
<INPUT type=button id="Stop" value="Stop" onClick='document.getElementById("vlc").playlist.stop();'>
</body>

</html>
Maurice 8)

waheguru_son
New Cone
New Cone
Posts: 3
Joined: 27 Mar 2007 06:42

Postby waheguru_son » 27 Mar 2007 23:57

THANKS SUPERB

Tombigel
Blank Cone
Blank Cone
Posts: 70
Joined: 05 Mar 2006 00:34
Contact:

Postby Tombigel » 28 Mar 2007 01:29

is there a way to to tell the browser to go to VLC download page if VLC is not installed?

divx118
Blank Cone
Blank Cone
Posts: 95
Joined: 22 Jun 2006 18:19

Postby divx118 » 28 Mar 2007 17:39

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Simple VLC activeX page playing Nasa stream</title>
</head>

<body>
<!--
Insert VideoLAN.VLCPlugin.2
-->
<div>
<OBJECT classid="clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921"
codebase="http://downloads.videolan.org/pub/video ... on=0,8,6,0"
width="640"
height="480"
id="vlc"
events="True">
<!--below you can put your url to the video the current one is the NASA stream-->
<param name="MRL" value="http://playlist.yahoo.com/makeplaylist. ... ent=149773" />
<param name="ShowDisplay" value="True" />
<param name="AutoLoop" value="False" />
<param name="AutoPlay" value="True" />
<param name="Volume" value="50" />
<param name="StartTime" value="0" />
<EMBED pluginspage="http://www.videolan.org"
type="application/x-vlc-plugin"
progid="VideoLAN.VLCPlugin.2"
width="640"
height="480"
name="vlc">
</EMBED>
</OBJECT>
</div>
<INPUT type=button id="Play" value=" Play " onClick='document.getElementById("vlc").playlist.play();'>
<INPUT type=button id="Stop" value="Stop" onClick='document.getElementById("vlc").playlist.stop();'>

<!--Script to detect if vlc 0.8.6a is installed-->
<script language="javascript">

try{
if (document.getElementById("vlc").VersionInfo!="0.8.6 Janus")
{
alert("Download and install the VLC player")
window.navigate("http://www.videolan.org")
}

}
catch(e)
{
alert("Download and install the VLC player")
window.navigate("http://www.videolan.org")
}
</script>
</body>

</html>
Yes you can look at the script i put in the code at the end.

Maurice 8)

marcuschan
Blank Cone
Blank Cone
Posts: 54
Joined: 08 Jul 2006 16:31

Postby marcuschan » 29 Mar 2007 03:59

is there a way to to tell the browser to go to VLC download page if VLC is not installed?

yes, the following "codebase" line (in the html) tells the browser to go to downloads.videplan... and download the VLC if VLC is not yet installed on the user's PC ..

codebase="http://downloads.videolan.org/pub/video ... on=0,8,6,0"

.....

But, ..this will ask the user to download the full version of vlc and install the VLC (not just the ActiveX required ..)

This may not be what u wanted !!

bye ..

lolwthm8s
Blank Cone
Blank Cone
Posts: 12
Joined: 10 Jun 2008 20:44

Re: VLC HTML CODE ??

Postby lolwthm8s » 13 Jun 2008 21:40

oh man oh man oh man!

i think im looking for this code for a long long time...

i know next to nothing about the coding of vlc or web pages i do run a multi game clan site that needs a player to stream content when i am asked to. i dont need searching or web controls,

all i need is a player i can "plug-into" my web page....
that my other clan members can watch, video types are mostly FRAPS and personal cam corder films, i.e. my rollerblade excursions or some footage of car shows, random member submitted files, and the occasional .avi movie of the month event we try and have, but with most online streaming movie sites its a long long buffer followed by crappy vids.

we need a solution that allows ME to put up a video when we need it, do not need 24/7 streaming or any kind of web controls save play pause and stop. just a simple web player code i can "paste" and then stream to.....

i had a code on my old PC it worked for me to see the videos but no one else could they only saw a black box said no video.

so after exaustive searching i ran across this post... please oh please tell me this code will work and how do i make it so others can see the stream.

our web page the player will sit on isnt visible except to me unless i share the link so it will be for a dozen people tops.

oh please can some VLC code guru help me out here
?
i have been trying for ages to get this to work basically gave up, but i am a bull dog about a problem and will spend countless(and have spent) hours tring and failing to get it to work...

gopikrishnan.j
New Cone
New Cone
Posts: 1
Joined: 12 Dec 2009 09:39

Re: VLC HTML CODE ??

Postby gopikrishnan.j » 12 Dec 2009 09:48

Do we have any solution to this problem yet?

Showing a live stream in the webpage, WITHOUT any software installed in the client system.

Installing software in server or using plugin by the client are acceptable though.

Note: My input stream is MPEG-4 format.

Thanks,
Gopi

divx118
Blank Cone
Blank Cone
Posts: 95
Joined: 22 Jun 2006 18:19

Re: VLC HTML CODE ??

Postby divx118 » 12 Dec 2009 11:26

Do we have any solution to this problem yet?

Showing a live stream in the webpage, WITHOUT any software installed in the client system.

Installing software in server or using plugin by the client are acceptable though.

Note: My input stream is MPEG-4 format.

Thanks,
Gopi
You will have to install vlc for this. Correct me if I am wrong, but for vlc you can't just install only the activeX, because it depends on the main program.
You could however also use an embedded windows mediaplayer to play the stream if the clients have the right codec installed for the mpeg-4.

On a personal note: Installing vlc however doesn't mess up your system like many codec installs will do. It is a standalone app wich has his own codecs embedded.

Maurice 8)

Sandy93
New Cone
New Cone
Posts: 1
Joined: 14 Jun 2016 14:28

Re: VLC HTML CODE ??

Postby Sandy93 » 15 Jun 2016 06:20

Hi,
I am Streaming a video in vlc player and viewing that using a html code. While watching that video, from the client page I should be able to set the time from where the vlc server should stream the video.

There is a command called "--start-time <Integer>". But this should be done from client page. Can you please give the solution for this thing in html code?

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

Re: VLC HTML CODE ??

Postby da2424 » 21 Jun 2016 16:03

This should work:

Code: Select all

vlc.playlist.add("rtsp://servername/item/to/play", "Title", ":start-time=5") //5 Seconds vlc.playlist.play();
In the future, please create an own topic for new questions for a better overview.


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 26 guests