html - Android PhoneGap HTML5video -
I'm looking for a HTML5 video plugin for I've got a plug-in, but I have some problems, like I have the following problems: This Javascript function is now < Pre> In my case (in my case And this is a BDI code This is a work for me;) PhoneGap .
plugin.xml Where to Keep
& lt; video & gt;
is not working with PhoneGap
start function () {window.plugins.html 5video.in initialize ({"video1": "movie.mp4"}); Window.plugins.html5video.play ("video1"); 04-24 09: 52: 59.305: E / Web Console (740): Uncustom Type Error: The 'Start' method of the undefined file can not be called: / // android_asset After several attempts I solved this way:
add the cordova plugin https://github.com/ Jaeger25 / html5video.git (this command Together, the project is configured to use the plugin automatically
platforms \ androis \ res \ raw \ where I have the video
splash.mp4
\ www \ splash.html ) I am joining this code in HEAD:
& lt; Script type = "text / javascript" src = "cordova.js" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" src = "html5video.js" & gt; & Lt; / Script & gt; & Lt; Script & gt; // Load the device API libraries // load on the function () {document.addEventListener ("deviceready", onDeviceReady, false); } // Device APIs are available // function onDeviceReady () {window.plugins.html 5Video.initialize ({"splashvideo": "splash.mp4"}) window.plugins.html5 video play ("splashvideo"); } & Lt; / Script & gt;
& lt; Body onload = "onLoad ()" & gt; & Lt; Video id = "splashvideo" Autoffer control = "wrong" & gt; & Lt; / video & gt; & Lt; / Body & gt;
Comments
Post a Comment