Tuesday, March 18, 2014

android live streaming for video using MX Player

Hi Developers!
if you want to live stream in android there are many possible way for that for example we can use vitmio library adobe air and mx player here we discuss only mx player.
remember live streaming in android the url must be rtsp rtmp mms type other wise you can't able to achieve live streaming.
live streaming using mx player this is a working code for you hope you will enjoy it.

String videoUrl = "rtsp://217.146.95.166:554/live/ch20yqcif.3gp";
Intent i = new Intent(android.content.Intent.ACTION_VIEW);
i.setData(Uri.parse(videoUrl));
startActivity(i); 

No comments:

Post a Comment