Discussion Forums  >  Uncategorized

Replies: 6    Views: 452

thedoctor
Aspiring developer
Profile
Posts: 17
Reg: Jan 10, 2011
USA
170
01/15/11 09:09 AM (15 years ago)

Streamin Audio

Is there anyway where you can stream audio using BuzzTouch on the home page. I have a live stream I want to stream into the app, I have seen: MediaPlayer mp = new MediaPlayer(); mp.setDataSource(PATH_TO_FILE); mp.prepare(); mp.start(); But I am unsure where I need to put this to make it happen. Any help would be greatly appreciated. I am very new to App development so please be gentle with me.
 
thedoctor
Aspiring developer
Profile
Posts: 17
Reg: Jan 10, 2011
USA
170
like
01/15/11 09:58 AM (15 years ago)
The stream I am trying to get working is a .asx stream
 
paulwyre
Apple Fan
Profile
Posts: 139
Reg: Dec 21, 2010
USA
1,390
like
01/15/11 10:37 PM (15 years ago)
Did you try adding it as a custom URL?
 
thedoctor
Aspiring developer
Profile
Posts: 17
Reg: Jan 10, 2011
USA
170
like
01/16/11 03:46 AM (15 years ago)
I want the stream on the homepage rather than having to link to it.
 
thedoctor
Aspiring developer
Profile
Posts: 17
Reg: Jan 10, 2011
USA
170
like
01/16/11 08:34 AM (15 years ago)
I have found something that may be able to help me do this, but I need to add it to the homepage, but I have no idea how to add it to the home page, I can't seem to locate the file that I need to do this, this will be editing the source code directly. Can anyone point me in the right direction. Any help is greatly appreciated.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
01/16/11 09:48 AM (15 years ago)
Hi... changing the layout of your app is doable, but the simplicity or difficulty will depend on your skill level. I would... a) Create a menu item leading to a CustomURL screen. b) In the CustomURL screen, enter the URL for your live-stream. If it plays like you want, open the Eclipse project and look for the AndroidManifest.xml file. This is the file that determines which screen is your Home Screen. To do what you're talking about will require you to create a new screen in Ecplise to use as your home screen. This means you'll probably end up copying Screen_CustomURL and making your own screen, like Screen_MyStream or something like that. Next, you'll need to adjust the source-code in the your new screen to point to the URL you are streaming. This will take a basic understanding of Java and the source-code. It's not tough, scroll though the source for CustomURL, you'll see how it works. If this idea is too difficult to understand, you'll need to hire a developer to help you.
 
thedoctor
Aspiring developer
Profile
Posts: 17
Reg: Jan 10, 2011
USA
170
like
01/16/11 10:04 AM (15 years ago)
Thanks, I will take a look to see if I can figure it out. This is the first App I have made, so still trying to learn where it all fits in.
 

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.