I'm doing an application that plays youtube videos.
It works fine but key event don't.
I have a js function that handle remote control key events:
Main.keyDown = function()
{
var keyCode = event.keyCode;
switch(keyCode)
{
case VK_PAUSE:
player.pauseVideo();
break;
case VK_PLAY:
player.playVideo();
break;
default:
break;
}
}
With onkeydown in html:
Twice are handled but calling player.stopVideo has not effect (player.playVideo has).
Please, help.
Thanks
