Discussion Forums  >  Uncategorized

Replies: 3    Views: 237

Lyle @SFNeNT
buzztouch Evangelist
Profile
Posts: 168
Reg: Apr 29, 2011
Chicago, IL
2,830
01/10/12 10:51 AM (14 years ago)

Streaming Audio 1.5 Android

What do I have to do to get streaming audio to work in 1.5, i added all my audio files in my eclipse project but when I test app I get message saying Look at the BT_screen_audio.java file? I guess the question is, is there addition info I need to add to my project and how to go about it? Thanks in Advance
 
gereghas
Aspiring developer
Profile
Posts: 45
Reg: May 14, 2011
Oklahoma
1,250
like
01/10/12 10:55 AM (14 years ago)
 
Lyle @SFNeNT
buzztouch Evangelist
Profile
Posts: 168
Reg: Apr 29, 2011
Chicago, IL
2,830
like
01/10/12 11:21 AM (14 years ago)
Thanks Alot!!!
 
StepWiseMedia
Android Fan
Profile
Posts: 7
Reg: Jan 08, 2012
Savannah
70
like
01/10/12 11:25 AM (14 years ago)
After a few hours of wracking my brain over that question, I made a quick and dirty fix to the problem by localizing the audio file.....SEE THE POST ABOVE...when you create a 1.5 Android package, it ties the correct screens and files to the main BuzzTouch config file...(stored on the BT servers) but the BT_screen_audio.java file doesn't call the main config file (the JSON file that stores your screens/layouts etc.) From what I gather, the audio screens are still in the works for Android 1.5 Using my fix though REQUIRES a recompile if you decide to change the audio...the best bet would be to store your audio on a server, and then extend the solution I posted to call the URI of the audio file (using the native MediaPlayer for Android) You could also configure the player to show the play controls etc...and for bigger audio files, adding a release() so as not to overload the memory If David could post some scripts to call the JSON config file, that would be awesome too...there is an example in the BT_screen_audio.java file, but I couldn't make it work. Here is the official doc http://developer.android.com/reference/android/media/MediaPlayer.html
 

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.