Fullscreen on play
This take the player into fullscreen mode with an event binded against doPlay.
When you pause the video it restores to window playback.
This page also logs fullscreen events.
kWidget.addReadyCallback(function( playerId ){
var kdp = document.getElementById(playerId);
kdp.kBind("doPlay", function(){
kdp.sendNotification('openFullScreen');
});
kdp.kBind("doPause", function(){
kdp.sendNotification('closeFullScreen');
});
kdp.kBind("openFullScreen", function(){
$("#fslog").append("openFullScreen\n");
});
kdp.kBind("closeFullScreen", function(){
$("#fslog").append("closeFullScreen\n");
});
});
Fullscreen Event log: