Closed GoogleCodeExporter closed 9 years ago
Yes, I too want to make a simple app to play a streaming file from a website.
Original comment by JoeB...@gmail.com
on 19 Oct 2010 at 8:49
Original comment by ma...@google.com
on 28 Oct 2010 at 8:21
Im still trying to get this to work maybe I am missing something
Original comment by kb3...@gmail.com
on 29 Oct 2010 at 7:38
[deleted comment]
Me too, I use the set source block and type in the url to the stream, but it
does not play. What are we missing?
Original comment by JoeB...@gmail.com
on 31 Oct 2010 at 8:07
What did you do to get this working?
Original comment by sbb...@gmail.com
on 4 Mar 2011 at 11:58
I've been trying to this with my app too. Here's what I've come up with:
I originally did my app on my HTC Sensation. My app gets a sites API, goes thru
the JSon code, and makes a list of mp3 links it gets off the Json code. I have
buttons that when pressed, streams the desired song to the user. I made a
procedure that takes the list of mp3 links and and runs Activity Starter off
that list. The Activity Starter block inputs looks like this:
Action: android.intent.android.VIEW
DataURI: http://files........./.mp3
Now here's where the problem lies...when I run this on my HTC Sensation, the
link is opened in a browser and it automatically plays the mp3 link in the
stock player and streams the song. When I run it on my brother's G2 (which
doesn't have the Sense UI on it), the browser opens with the link, but it times
out (I think bc nothing happens) and closes the app.
I did come up with a solution though. I changed the Activity Starter inputs to
this:
Action: android.intent.android.VIEW
Package: com.android.media
Class: com.android.media.StreamPlayer
Data URI: http://files........./.mp3
When I run that block on the G2, it opens the player with the streamed link.
When i run it on my HTC Sensation, it give me an error stating that there is no
corresponding activity.
I also tried opening it directly with the browser using this ActivityStarter:
Action: com.android.VIEW
Package: com.android.browser
Class: com.android.browser.BrowserActivity
DataURI: http://files...../.mp3
Does not work for either on either phone with this.
I've been stuck on this problem for a couple of days now. Idk if it has to do
with the fact that one phone is on Sense and the other one isn't. I've looked
at the logs, and the only solid thing I can pin this on is the fact that in the
my HTC Sense, when you open the player, the action looks like this:
I/ActivityManager
Start proc com.htc.(other stuff)
While on the G2, it looks like this
I/ActivityManager
Start proc com.android. (other stuff)
Is this the problem? And if so, is it something we CAN'T work around with this
current version of AI?
If it's not the problem, can someone point me in the right direction? Thanks.
Original comment by thejet1...@gmail.com
on 11 Aug 2011 at 7:51
^^^^
Also, I know I can use the Player component to stream the song now, but I want
my user to be able to control the playback of the song.
I've seen people make apps using the player + button components to pause and
play songs but I want my user to have the ability to rewind as well.
Original comment by thejet1...@gmail.com
on 11 Aug 2011 at 7:56
Original issue reported on code.google.com by
kb3...@gmail.com
on 4 Oct 2010 at 3:29