Page 1 of 1

Fullscreen

Posted: 15 Jul 2007 01:55
by godson
Hi to all i need to know how to make vlc start in fullscreen in IE

Re: Fullscreen

Posted: 15 Jul 2007 12:36
by NovceGuru
That would be a very nice option

Re: Fullscreen

Posted: 15 Jul 2007 13:37
by NovceGuru
I was able to get it working using some javascript, you might have to adjust the time out (I have 500 (1/2 a second) in order to not have video output problems (black screen, etc)


<SCRIPT LANGUAGE="JAVASCRIPT">
function fullscreen()
{
document.vlc.fullscreen();
}
function stop()
{
document.vlc.stop();
}
function playorpause()
{
if(document.vlc.Playing)
{
document.vlc.pause();
}
else
{
document.vlc.play();
setTimeout('fullscreen()',500);
}
}
</SCRIPT>

Re: Fullscreen

Posted: 15 Jul 2007 23:33
by dynamitemedia
Could you show us how the whole code?

i have been trying to figure out a way to launch in full screen and stay in for streaming some videos and out to my tv

thanks

Re: Fullscreen

Posted: 16 Jul 2007 06:14
by godson
here is how i did mine:
<html>

<script type="text/javascript">
function fullscreen()
{
document.vlc.fullscreen();
}
setTimeout('fullscreen()',1200); // run the function fullscreen after 1.2 seconds.
</script>

<body bgcolor="brown" ><center>
<!--TITLE=<VLC-Brand>-->
<OBJECT classid="clsid:E23FE9C6-778E-49D4-B537-38FCDE4887D8"
codebase="http://192.168.0.1/axvlc.cab"
width="720" height="480" id="vlc" events="True">
<param name="Src" value="C:\media\brand.mpg" />
<param name="ShowDisplay" value="False" />
<param name="AutoLoop" value="true" />
<param name="AutoPlay" value="True" />

</OBJECT>
<br><p>
<table border="0" width="100%">
<tr>
<td width="33%" align="right">
<a href="javascript:;" onclick='document.vlc.play()'><img src="c:/upload/vlc/play.jpg" width="70" height="16" border="0" alt="Play Video"></a>
</td>
<td width="45%" align="right">
<a href="javascript:;" onclick='document.vlc.Seek(-10)'><img src="c:/upload/vlc/play.jpg" width="70" height="16" border="0" alt="Seek"></a>
</td>

<td width="33%" align="center">
<!--a href="javascript:;" onclick='document.vlc.pause()'><img src="c:/upload/vlc/pause.jpg" width="70" height="16" border="0" alt="Pause Video"></a-->
</td>
<td width="30%" align="left">
<a href="javascript:;" onclick='document.vlc.stop()'><img src="c:/upload/vlc/stop.jpg" width="70" height="16" border="0" alt="Stop Video"></a>
<a href="javascript:;" onclick='document.vlc.fullscreen()'><img src="c:/upload/vlc/stop.jpg" width="70" height="16" border="0" alt="Fullscreen"></a>

</td>
</tr>
</table>
</center>
</body>
</html>

Re: Fullscreen

Posted: 20 Apr 2009 17:29
by d3rd3
Hi,

I have a problem with fullscreen using this code:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title> Your Title Here </title>
<meta name="Generator" content="Alleycode HTML Editor">
<meta name="Description" content="Your description here...">
<meta name="Keywords" content="Your keywords here...">



</head>

<OBJECT id='vlc1_IE' codeBase=http://downloads.videolan.org/pub/video ... /axvlc.cab height=480 width=640 classid=clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921>
<embed type="application/x-vlc-plugin" pluginspage="http://www.videolan.org" version="VideoLAN.VLCPlugin.2"
width="640"
height="480"
id="vlc1">
</embed>
</OBJECT>
<body onload="play('vlc1')">
<script language="javascript">

function play(vlc) {
var uri = "udp://@239.0.1.1:49408";
if (document.all) vlc += "_IE"
var vlc = document.getElementById(vlc);
//alert(vlc);
if (document.all) vlc.playlist.add(uri,uri, new Array());
else vlc.playlist.add(uri,uri, "");
vlc.playlist.play();

alert(vlc);
//vlc.video.toggleFullscreen();
vlc.video.fullscreen = true;
}

</script>

</body>
</html>


when i`m running this code (second alert(vlc) on) IE is showing me warning window with ok button after clicking on this button vlc is going fullscreen. When second alert is off nothing is happend (vlc is playing streaming but is not going fullscreen. what I`m doing wrong?

Re: Fullscreen

Posted: 20 Feb 2010 00:44
by wonder202
godson ,

How to use "no-video-title-show" option in your code?

Thanks

Re: Fullscreen

Posted: 19 Mar 2010 02:25
by djstava
godson ,

How to use "no-video-title-show" option in your code?

Thanks
You should add "no-video-title-show" to the plugin source code,and recompile.

Re: Fullscreen

Posted: 24 Mar 2010 15:20
by MrMcMedia
var vlc = document.getElementById(vlc);
//alert(vlc);
if (document.all) vlc.playlist.add(uri,uri, new Array());
else vlc.playlist.add(uri,uri, "");
vlc.playlist.play();

alert(vlc);
//vlc.video.toggleFullscreen();
//vlc.video.fullscreen = true;
// TRY TO GIVE HIM SOME TIME TO START
setTimeout("document.getElementById(\"vlc\").video.fullscreen = true;",1000);