How to stream RTMP live video in Android

19,391

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

Share:
19,391
Pankaj Kumar
Author by

Pankaj Kumar

Updated on June 22, 2022

Comments

  • Pankaj Kumar
    Pankaj Kumar almost 2 years

    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?