Android: Stream RTSP using an intent
Hi,
I'm able to play RTSP video using the video player, but as there are bugs with seeking and RTSP I'm looking into playing video through an intent instead. I've not been able to get this working however: I've got the following code:
var intent = Ti.Android.createIntent({
action: Ti.Android.ACTION_VIEW,
type: 'video/*',
data: movie.url
});
Ti.Android.currentActivity.startActivity(intent);
(movie.url is a URL in the style rtsp://some.url)
But I'm getting an exception when I run it:
No Activity found to handle Intent
I'm guessing this is because there's no video player on the device that is registered to support RTSP - is that the case, or have I configured the intent wrong? Has anyone got this working in the past and can recommend a way forward?
Cheers,
Craig
1 Answer
-
Accepted Answer
Your intent is created correctly and will work (I've tested it) if you have an RTSP player installed. Try installing the free "MoboPlayer" from the android market to test it out: https://market.android.com/details?id=com.clov4r.android.nil&hl=en