Android 4.1 - RTSP using VideoView and MediaController

前端 未结 2 775
被撕碎了的回忆
被撕碎了的回忆 2020-12-31 10:08

Developing a simple app to play a RTSP stream on Android 4.1, but unable to do so

Update

I am able Able to play if I use BigBuckBunny_115k.m

相关标签:
2条回答
  • 2020-12-31 10:48

    I analyzed the streams given in these links using openRTSP.

    "openRTSP" is a command-line program that can be used to open, stream, receive, and (optionally) record media streams that are specified by a RTSP URL - i.e., an URL that begins with rtsp://

    Using this utility, I found that most of the SDP files mentioned had issues, and this is the reason for the issues coming in the application.

    0 讨论(0)
  • 2020-12-31 10:49

    another good solution for playing RTSP, using the native player.

    mediaURL = "rtsp://192.168.0.119/Bolt.ts" 
    Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(mediaURL));
    startActivity(intent);  
    
    0 讨论(0)
提交回复
热议问题