Page 1 of 1
VLC HTML CODE ??
Posted: 27 Mar 2007 06:45
by waheguru_son
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
Posted: 27 Mar 2007 17:51
by divx118
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
Posted: 27 Mar 2007 21:31
by waheguru_son
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
Posted: 27 Mar 2007 22:21
by divx118
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
Posted: 27 Mar 2007 23:57
by waheguru_son
THANKS SUPERB
Posted: 28 Mar 2007 01:29
by Tombigel
is there a way to to tell the browser to go to VLC download page if VLC is not installed?
Posted: 28 Mar 2007 17:39
by divx118
<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
Posted: 29 Mar 2007 03:59
by marcuschan
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 ..
Re: VLC HTML CODE ??
Posted: 13 Jun 2008 21:40
by lolwthm8s
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...
Re: VLC HTML CODE ??
Posted: 12 Dec 2009 09:48
by gopikrishnan.j
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
Re: VLC HTML CODE ??
Posted: 12 Dec 2009 11:26
by divx118
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
Re: VLC HTML CODE ??
Posted: 15 Jun 2016 06:20
by Sandy93
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?
Re: VLC HTML CODE ??
Posted: 21 Jun 2016 16:03
by da2424
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.