Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
<meta name="viewport" content="width=320; user-scalable=yes" />
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<script type="text/javascript" charset="utf-8" src="phonegap-1.1.0.js"></script>
<script type="text/javascript" charset="utf-8" src="video.js"></script>
<script type="text/javascript">
function init(){
document.addEventListener("deviceready", console.log('ready'), true);
function playVideo(vidUrl) {;
<body onload="init();">
<a href="#" onclick="playVideo('')">Play HTTP</a><p/>
<a href="#" onclick="playVideo('file:///path/to/my/file.mp4')">Play File</a><p/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment