Does anybody know how to play audio file from web.

All your problems with Audio, Video and Images.

Does anybody know how to play audio file from web.

Postby Asgard » Thu Dec 27, 2007 2:19 pm

Does anybody know how to play audio file from web? Google example doesn't work :(


Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1.  ContentURI myURL = new ContentURI("http://myserver.com/link/to/my.mp3");
  2.  
  3.     Intent intent = new Intent(Intent.VIEW_ACTION, myURL);
  4.  
  5.     intent.setType("audio/*");
  6.  
  7.     startActivity(intent);
Parsed in 0.031 seconds, using GeSHi 1.0.8.4
Catch the moment
Asgard
Junior Developer
Junior Developer
 
Posts: 18
Joined: Sat Dec 15, 2007 8:49 pm

Top

Return to Multimedia Problems

Who is online

Users browsing this forum: Exabot [Bot], Google [Bot] and 17 guests