Discussion Forums  >  Uncategorized

Replies: 6    Views: 604

Radio East
Aspiring developer
Profile
Posts: 19
Reg: Sep 29, 2010
USA
190
12/05/10 12:29 PM (15 years ago)

Streaming Audio Function

Hello David, I wanted to know if you could share with me what the Streaming Audio for mp3 and mp3 streams is calling for the android to open this audio up as a video stream? I have some thoughts on how to incorporate a work-around use html within the application but I need access to this. Second question..... CAN you from within a customs html feature, lets say I want to open up a website via an href link in html, can you have this open outside the application in the web browser instead of it opening from within the app itself?
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
12/05/10 01:25 PM (15 years ago)
I think you mean why instead of what - the question makes sense that way ;-) The Android source for Audio streaming needs help - lots of it. lol. The Android devices use the same internal processes to run audio and / or video. To the device, the only difference is the data. It is lame but not something you or I can control. The buzztouch code SHOULD have a different screen for Audio and Video, it will soon (v1.5). Today, it just loads the same screen. The amateur part is the 'blank' screen and the 'loading message' when playing audio it reads 'loading video' ugh. This message is easy to change: Screen_Video.java look for message in the StartMovie() method, change it to 'Streaming Audio please wait....' or whatever's best. HTML links in native browser: Along the same lines as the comments above, the Android browser is LAME when embedded in an app. It's tough to get to behave the way you and I and other users would expect. I haven't done much testing with opening outside the app. Maybe start simply, change the 'target' of the link in the html to _blank, see what happens? Like... href='mywebpage.html' target='_blank' Android just may surprise us and do what you are describing.
 
Radio East
Aspiring developer
Profile
Posts: 19
Reg: Sep 29, 2010
USA
190
like
12/06/10 04:41 AM (15 years ago)
No dice. I tried the _blank for the target and it still opened in the application. I first tried the audio file and nothing. It just seemed to ignore the request. When I changed the link to m.yahoo.com it then switched to yahoo but within the same screen of the menu function. Kinda disappointing that Droid is this touchy.
 
Radio East
Aspiring developer
Profile
Posts: 19
Reg: Sep 29, 2010
USA
190
like
12/06/10 04:48 AM (15 years ago)
What I have found using target is that the app will open up a session of the browser for its own use. It does not interact with the outside world functions of the droid. And I don't know how you can place a call to an outside program or browser from within the application. Hmm.. Maybe getting someone to write a radio streaming program and making this a subscription based service ($$$). I WOULD PAY $20 per month for access!!!!!
 
Radio East
Aspiring developer
Profile
Posts: 19
Reg: Sep 29, 2010
USA
190
like
12/06/10 04:53 AM (15 years ago)
Hey David... I know I can't access your application file to do this because I think all the source information is stored on your server. You probably already know this link, however wanted to see if you could take a look at it and see if there is something there that could help with the development of an audio player for streaming media (shoutcast/icecast). http://developer.android.com/guide/topics/media/index.html Maybe anyone else that would like to provide some insight please reply.
 
HottWeelz
Lost but trying
Profile
Posts: 89
Reg: Nov 11, 2010
New York
890
like
12/08/10 08:14 PM (15 years ago)
IF there was a way to find the code in streamfurious or xiialive. you'd be able to make your own streaming functionality... not sure if they are open source.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
12/09/10 12:58 AM (15 years ago)
@RadioEast: I have not looked into this with much effort in a week or so. HottWeelz seems to have the best solution worked out so far. His server-solution seems perfect. I'm crazy busy trying to get v1.5 done for iOS so I can then re-create it in Android. This is when I'm planning to implement the new player in Android. @HottWeelz: Do you think I'm going to be able to configure out backend to host streams stored in the database? I think we can, just havn't dug into it.
 

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.