html - Android PhoneGap HTML5video -


I'm looking for a HTML5 video plugin for PhoneGap .

I've got a plug-in, but I have some problems, like I have the following problems:

  • I do not know that plugin.xml Where to Keep
  • I do not know with this & lt; video & gt;
  • And this is not working with PhoneGap

    This Javascript function is now < Pre> 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:

    Git
  • I have installed the plugin with the command for the installed Cordoba add the cordova plugin https://github.com/ Jaeger25 / html5video.git (this command Together, the project is configured to use the plugin automatically
  • I have the folder platforms \ androis \ res \ raw \ where I have the video splash.mp4
  • In my case (in my case \ 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;     

    And this is a BDI code

      & lt; Body onload = "onLoad ()" & gt; & Lt; Video id = "splashvideo" Autoffer control = "wrong" & gt; & Lt; / video & gt; & Lt; / Body & gt;   

    This is a work for me;)

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -