video.js should be edited like this:
1/ Replace "var max_width = parent.width || window.innerWidth;"
With "var max_width = parent. offsetWidth || window.innerWidth;"
2/ Replace "var max_height = parent.height || window.innerHeight;"
With "var max_height = parent. offsetHeight || window.innerHeight;"
Then, in the HTML file (for full-screen game):
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<style type="text/css">
<!--
html,body{height:100%;margin:0;padding:0;}
body{background-color:black;overflow: hidden;}
#info{position:absolute;top:0;left:0;bottom:0;width:100%;text-align: center;}
#jsapp{width:100%;height:100%;}
-->
</style>
</head>
<body>
<div id="info">
<div id="jsapp">
<script type="text/javascript" src="lib/melonJS-0.9.5-min.js"></script>
<!--<script type="text/javascript" src="game.js"></script>-->
</div>
</div>
<body>
If you want to add a header (an ad, for example :-) ):
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<style type="text/css">
<!--
html,body{height:100%;margin:0;padding:0;}
body{background-color:black;overflow: hidden;}
#my-ad{position:absolute;top:0;left:0;width:100%;height:50px;text-align:center;}
#info{position:absolute;top:50px;left:0;bottom:0;width:100%;text-align: center;}
#jsapp{width:100%;height:100%;}
-->
</style>
</head>
<body>
<div id="my-ad">
<!-- YOUR AD -->
</div>
<div id="info">
<div id="jsapp">
<script type="text/javascript" src="lib/melonJS-0.9.5-min.js"></script>
<script type="text/javascript" src="game.js"></script>
</div>
</div>
</body>
Cheers~~