After several attempts I solved this way:
- I have installed
Git
- I have installed the plugin HTML5Video for Cordoba with command
cordova plugin add https://github.com/jaeger25/Html5Video.git
(with this command, the project has run automatically configured to use the plugin) - I created the folder
platforms\androis\res\raw\
where I copied the videosplash.mp4
In the html file (in my case
\www\splash.html
) I insert this code in HEAD:<script type="text/javascript" src="cordova.js"></script> <script type="text/javascript" src="Html5Video.js"></script> <script> // Wait for device API libraries to load // function onLoad() { document.addEventListener("deviceready", onDeviceReady, false); } // device APIs are available // function onDeviceReady() { window.plugins.html5Video.initialize({ "splashvideo" : "splash.mp4" }) window.plugins.html5Video.play("splashvideo"); } </script>
and this is the BODY code
<body onload="onLoad()">
<video id="splashvideo" autobuffer controls="false"></video>
</body>
It's work for me ;)