Search code examples
androidmedia-playerrtspandroid-videoview

Android MediaPlayer, VideoView rtsp www authentication issue


Android VideoView works when I disable rtsp authentication from server side. But when authentication is enabled the VideoView fails to play the live stream. Also tried

rtsp://username:password@host:port/file.sdp =>doesn't work.

But rtsp://host:port/file.sdp => Works when authentication is disable.

I have been working on this issue from past 2 weeks but did not find much help on this. Or else if any open source rtsp player for android that support authentication will do. Or any other workaround I can use to achieve this.

Guys please please help.


Solution

  • The Android MediaPlayer class support several media formats.

    But regarding the RTSP protocol, the authentification is not supported. You can find an open issue on the android project and an other interesting post about the problem.