<commit_before><!DOCTYPE HTML>
<html>
<head>
<title> Fullscreen on play</title>

<script type="text/javascript" src="http://code.jquery.com/jquery.min.js"></script>
<script type="text/javascript" src="../../../mwEmbedLoader.php"></script>
<script type="text/javascript" src="../../../docs/js/doc-bootstrap.js"></script>
</head>
<body>
<h2> Fullscreen on play </h2>
This take the player into fullscreen mode with an event binded against doPlay. 
When you pause the video it restores to window playback.<br>
This page also logs fullscreen events.
<pre class="prettyprint linenums">
kWidget.addReadyCallback(function( playerId ){
	var kdp = document.getElementById(playerId); 
	kdp.kBind("doPlay", function(){
		kdp.sendNotification('openFullScreen'); 
	}); <commit_msg>added default vieport to fullscreen on play example<commit_after><!DOCTYPE HTML>
<html>
<head>
<title> Fullscreen on play</title>

<script type="text/javascript" src="http://code.jquery.com/jquery.min.js"></script>
<script type="text/javascript" src="../../../mwEmbedLoader.php"></script>
<script type="text/javascript" src="../../../docs/js/doc-bootstrap.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<h2> Fullscreen on play </h2>
This take the player into fullscreen mode with an event binded against doPlay. 
When you pause the video it restores to window playback.<br>
This page also logs fullscreen events.
<pre class="prettyprint linenums">
kWidget.addReadyCallback(function( playerId ){
	var kdp = document.getElementById(playerId); 
	kdp.kBind("doPlay", function(){
		kdp.sendNotification('openFullScreen'); 
	}); 
{'fraction_non_alphanumeric': 0.16555082166768106, 'fraction_numerical': 0.0036518563603164943, 'mean_word_length': 5.347490347490347, 'pattern_counts': {'":': 0, '<': 38, '<?xml version=': 0, '>': 38, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4037124', 'n_tokens_mistral': 517, 'n_tokens_neox': 492, 'n_words': 139}