javascript - PhoneGap Build Android Audio Not Working -


I am using PhoneGap Build to launch Android applications. My html and everything works perfectly in the browser However, it is not on my Android device, is there anything with its permission? I'm not really sure, and completely confused that I have to go to the next key. I have my HTML and Javascript.

I do not have any reference files, fyi my folders are css, img, js and sound.

Let me know if you can help!

HTML + javascript

  & lt; H1 id = "main" & gt; Geo & lt; / H1> Var PP = 1; Var audio = new audio ('sound / sound 1. mp3'); (Pp == 1) {audio.play (); Pp ++; Console.log (pp);} and if (pp = = 2) {audio.pause (); Pp--; Console.log ("audio pauses");}});  

This permission is not an issue, rather, your HTML / Javascript code is run / Loads up inside a customized android webview ()

There are several queries in this webview and some do not behave in a certain way, such as in some cases the browser will be.

One of those cases is audio or video playing on Android, there is a media player to do this. If you were running this code in the 'normal' Android application then you will have an activity in which one of the webwiz The example would be To run the media files, you can inject an object, java.lang.String for example) that plays audio or video using the Android's Media Player.

So basically, right now However PhoneGrap provides an API to solve this problem. It's possible that they are doing what I have explained above right now.


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -