http - Embedding a live video stream into my android project -
http - Embedding a live video stream into my android project -
i newb please bear me...
i trying add together live video stream (http://fancystreems.com/default.asp@pageid=112.php) android app project. found code online want display(webview) video app instead of whole webpage. help appreciated. here code modified:
import android.app.activity; import android.net.uri; import android.os.bundle; import android.view.menu; import android.widget.mediacontroller; import android.widget.videoview; public class gaiamenu extends activity { @override public void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.gl); videoview player = (videoview)findviewbyid(r.id.player); string httpliveurl = "http://fancystreems.com/default.asp@pageid=112.php"; //for android 2.3.3 used httplive:// prefix player.setvideouri(uri.parse(httpliveurl)); player.setmediacontroller(new mediacontroller(this)); player.requestfocus(); player.start(); } @override public boolean oncreateoptionsmenu(menu menu) { getmenuinflater().inflate(r.menu.activity_main, menu); homecoming true; } }
you should have on several projects of live tv channels, able exact , right code android.
http streaming live tv
Comments
Post a Comment