android playing streaming pls files -
android playing streaming pls files -
i'm building application , need help.
this application can play streaming .pls files internet. problem can't figured out class play streaming pls file.
i had used mediaplayer class, got error , stopped working.
this piece of code in executing mediaplayer :
try { mediaplayer.setdatasource(site); } grab (illegalargumentexception e1) { // todo auto-generated grab block e1.printstacktrace(); } grab (illegalstateexception e1) { // todo auto-generated grab block e1.printstacktrace(); } grab (ioexception e1) { // todo auto-generated grab block e1.printstacktrace(); } seek { mediaplayer.prepare(); } grab (illegalstateexception e) { // todo auto-generated grab block log.e (getclass().getname(), "cannot play stream.."); e.printstacktrace(); } grab (ioexception e) { // todo auto-generated grab block log.e (getclass().getname(), "cannot play stream.."); e.printstacktrace(); } mediaplayer.start(); break;
what should ?? need help, thx (the try-catch statement automatic in eclipse. can't compile without try-catch statement)
as far know can't play pls files straight of android music/sound player classes.
i utilize httpget
download pls file , process extract url contains. 1 time have url of stream, can pass mediaplayer
, should play ok.
android streaming media-player
Comments
Post a Comment