Fullscreen

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
godson
New Cone
New Cone
Posts: 2
Joined: 15 Jul 2007 01:04

Fullscreen

Postby godson » 15 Jul 2007 01:55

Hi to all i need to know how to make vlc start in fullscreen in IE

NovceGuru
New Cone
New Cone
Posts: 2
Joined: 15 Jul 2007 12:33

Re: Fullscreen

Postby NovceGuru » 15 Jul 2007 12:36

That would be a very nice option

NovceGuru
New Cone
New Cone
Posts: 2
Joined: 15 Jul 2007 12:33

Re: Fullscreen

Postby NovceGuru » 15 Jul 2007 13:37

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>

dynamitemedia
Blank Cone
Blank Cone
Posts: 60
Joined: 15 Jul 2007 23:30

Re: Fullscreen

Postby dynamitemedia » 15 Jul 2007 23:33

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

godson
New Cone
New Cone
Posts: 2
Joined: 15 Jul 2007 01:04

Re: Fullscreen

Postby godson » 16 Jul 2007 06:14

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>

d3rd3
New Cone
New Cone
Posts: 1
Joined: 20 Apr 2009 17:23

Re: Fullscreen

Postby d3rd3 » 20 Apr 2009 17:29

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?

wonder202
New Cone
New Cone
Posts: 1
Joined: 20 Feb 2010 00:40

Re: Fullscreen

Postby wonder202 » 20 Feb 2010 00:44

godson ,

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

Thanks

djstava
Blank Cone
Blank Cone
Posts: 70
Joined: 17 Dec 2009 05:17

Re: Fullscreen

Postby djstava » 19 Mar 2010 02:25

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.

MrMcMedia
New Cone
New Cone
Posts: 5
Joined: 24 Mar 2010 14:51
Operating System: Windows / Linux

Re: Fullscreen

Postby MrMcMedia » 24 Mar 2010 15:20

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);


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 6 guests