Pankaj Kumar
Pankaj Kumar

Reputation: 93

How to stream RTMP live video in Android

I have developed an application on Android for live streaming through RTSP and it's working fine. I am able to play the RTSP URL with the help of Daroon Player and Wondershare. The running code for RTSP is:

Uri stream = Uri.parse("rtsp://media-us-2.soundreach.net/slcn_lifestyle.sdp"); 
Intent videointent = new Intent(Intent.ACTION_VIEW,stream); 
startActivity(videointent);

Now I have to stream the live video through RTMP, but I am not able to invoke it with the above process. The requirement is to play the RTMP URL with the Wondershare only.

How would I play the RTMP URL on an Android device with the help of a third-party application, that is, wondershare?

Upvotes: 6

Views: 20319

Answers (3)

KnowIT
KnowIT

Reputation: 2502

You can use Vitamio Library for android. Only drawback is that it has a license.

Here is a tutorial for it.

Upvotes: 0

Reza_Rg
Reza_Rg

Reputation: 3374

You can use your code, but instead of Daroon Player, play it with MX Video Player.

Upvotes: 0

Tuna Karakasoglu
Tuna Karakasoglu

Reputation: 1267

Please take a look at Vitamio. It is a nice library for playing multimedia content.

Upvotes: 4

Related Questions