You must play your video using MediaPlayer. Of course, you can prepare a dedicated website that lists the available streams and completed in WebView. Having this list of streams in a WebView, you can write an interface that links javascript on your web page with the correct interface in your Android code. Check out this section of the Android Dev manual:
And here is a list of supported media formats
I played rtsp stream successfully on Android 2.2, but I'm not sure if it was supported in previous versions.
Summarizing.
Prepare a site with javascript code and a list of threads
Create a layout with a webview with javascript support, for example:
Webview wv = (WebView) findViewById(R.id.WebView01); wv.setJavaScriptEnabled(true);
Add a class that will be called by javascript, as in the Dev manual above:
wv.addJavascriptInterface(new JavaScriptInterface(this), "Android");`
Play Stream Using MediaPlayer
Hope this helps.
source share