Page 1 of 1

document.onkeydown = getKeycode and fullscreen

Posted: 30 Oct 2007 17:30
by aleprig
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?

Re: document.onkeydown = getKeycode and fullscreen

Posted: 30 Oct 2007 18:03
by divx118
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)

Re: document.onkeydown = getKeycode and fullscreen

Posted: 05 Nov 2007 15:07
by aleprig
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 ^?

Re: document.onkeydown = getKeycode and fullscreen

Posted: 05 Nov 2007 16:14
by divx118
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)