document.onkeydown = getKeycode and fullscreen

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
aleprig
New Cone
New Cone
Posts: 6
Joined: 16 Jul 2007 18:34

document.onkeydown = getKeycode and fullscreen

Postby aleprig » 30 Oct 2007 17:30

hello
this is my problem: look at this code

<script>
function getKeycode(e)
{
var msg=" pause sarà disattivato tra 5 secondi";
var blnkey = e.which
document.frmMain.txtShowKey.value = "Keycode2 = " + blnkey;
if (blnkey=='32'){
document.video1.pause();
window.setTimeout("doRedirect()", 15000);}
}
document.onkeydown = getKeycode;
</script>
<embed type="application/x-vlc-plugin"


name="video1"
autoplay="yes"
loop="no" hidden="no" fullscreen=no ShowTracker=0
target="http://192.168.168.111/cond/talos.ts";>
</embed>
<br >
<a href="javascript" </a>
<input type=button value="Play/Pause" onClick='document.video1.pause();'>
<input type=button value="Stop" onClick='conferma();'>
<input type=button value="Fullscreen" onClick='document.video1.fullscreen();'>




<form name="frmMain">
<input type="text" name="txtShowKey">


with it I'm able to control use of keyboard, but I want to get it even I write fullscreen=yes

someone can help me?

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

Re: document.onkeydown = getKeycode and fullscreen

Postby divx118 » 30 Oct 2007 18:03

It doesn't gonna work when you put vlc in fullscreen, because youre document looses focus. What you can do is resize the activeX so it looks like fullscreen but you still keep the window borders from youre explorer.
If it is for the use only on local computers then you could write it in a HTA file and loose the borders.

Maurice 8)

aleprig
New Cone
New Cone
Posts: 6
Joined: 16 Jul 2007 18:34

Re: document.onkeydown = getKeycode and fullscreen

Postby aleprig » 05 Nov 2007 15:07

thanks,
as my client is on linux I 've thought to use a popup, but can you suggest me a javascript code for a popup at fullscreen ^?

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

Re: document.onkeydown = getKeycode and fullscreen

Postby divx118 » 05 Nov 2007 16:14

I didn't know but you can loose the borders in youre window see below. :)

Code: Select all

window.open('about:blank',null,"fullscreen = yes ,channelmode = yes ,status=no,toolbar=no,menubar=no,location=no,scrollbars=no");
I got it from here http://msdn2.microsoft.com/en-us/library/ms536651.aspx so you can see what parameters can be set.

Maurice 8)


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 31 guests