Discussion Forums  >  Audio, Video, Playing, Recording

Replies: 4    Views: 122

DeckG
Aspiring developer
Profile
Posts: 36
Reg: Apr 18, 2012
Oamaru, New Zea...
1,810
06/18/12 08:29 PM (13 years ago)

Sound files, workflow needed

Hi, I've created some web pages but need to add sound files that will play automatically when the page is viewed. I've embedded a player into the page but the app will not let the player start automatically, and if the user leaves the page without stopping the file after it is started, it continues to play..... annoying. I'm using V2.0 and have tried adding sound files in the background Audio tab, setting loops to 1 and stops with back button to true. Tried entering sound file location as file:///android_asset/BT_Audio/story1.mp3 in the url address Have tried various combinations in here) Placed the sound file in the BT_Audio folder, cleaned the project and uploaded to my phone..... and still no background audio. Anyone able to offer the right steps for this?
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
06/18/12 10:20 PM (13 years ago)
Are you Android ? Fred
 
CBungert
Aspiring developer
Profile
Posts: 56
Reg: Jun 17, 2011
Minneapolis
3,310
like
06/18/12 10:25 PM (13 years ago)
Yup, its android... based on his path of "file:///android_asset/BT_Audio/story1.mp3" What kind of player are you using? have you tried jquery? how familiar are you with buzztouch AND HTML pages? check out: http://pupunzi.open-lab.com/mb-jquery-components/jquery-mb-miniaudioplayer/ This full featured small player makes advantage of the new HTML5 AUDIO tag with a flash fallback for browsers that doesn't support it. ALL of pupunzis plug-ins are amazing...
 
DeckG
Aspiring developer
Profile
Posts: 36
Reg: Apr 18, 2012
Oamaru, New Zea...
1,810
like
06/18/12 11:12 PM (13 years ago)
Thanks guys, yes it's android, does the 'play background audio' option not just play the file? Thats what I would have expected.
 
CBungert
Aspiring developer
Profile
Posts: 56
Reg: Jun 17, 2011
Minneapolis
3,310
like
06/18/12 11:26 PM (13 years ago)
Well, yes... it does just play background audio. It sounded as though the problem was that you needed more control over the audio. Which is why I suggested an extremely lightweight way to accomplish just that. EDIT: I reread your question, and I would suggest dropping the "file:///android_asset" part of the URL as in android it should work without the full path just fine. Based on you saying that you created "web pages", a standard "web page" type solution is going to be easiest to implement, find issues, and make work as desired. Id give it less than an hour to solve using the jquery... OR keep digging and try to solve it in eclipse / buzztouch. Ive had some questions like this one myself before... Several of those questions I never found a workaround to and they make me wish there was a "plugin" solution.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.