Planned maintenance has been done but it did not solve the problem. So work will continue on this and a new time for trying updates will be announced asap.

Android QML RTSP Error



  • Hello

    i try play rtsp stream on android

    MediaPlayer {
        id: cameraStreamPlayer
        source: "rtsp://192.168.1.2:554/user=admin_password=secret_channel=1_stream=0.sdp?real_stream"
    }
    
    VideoOutput {
    	id: videoOutput
    	anchors.fill: parent
    	fillMode: VideoOutput.PreserveAspectCrop
    	source: cameraStreamPlayer
    

    when application is lanuched, i get these errors:

    W MediaPlayer: Couldn't open file on client side; trying server side: java.io.FileNotFoundException: No content provider: rtsp://192.168.1.2:554/user=admin_password=secret_channel=1_stream=0.sdp?real_stream
    W MediaPlayer: info/warning (701, 0)
    D MediaPlayer: setSubtitleAnchor in MediaPlayer
    

    Device: NVIDIA SHIELD K1
    Android: 6.0.1
    Qt: 5.7

    Anyone can help me?


  • Moderators

    @johniesm
    a quick lookup in the internet showed that this kind of error is often caused by authentication.
    Does your server need authentication to show the stream?



  • Yes, server need authentication. On another device (sony xperia, android 5.1) all works fine.

    I tried it on another ip camera, the same effect:

    W MediaPlayer: Couldn't open file on client side; trying server side: java.io.FileNotFoundException: No content provider: rtsp://192.168.1.2:8554/CH001.sdp
    W MediaPlayer: info/warning (701, 0)
    D MediaPlayer: setSubtitleAnchor in MediaPlayer
    




  • @johniesm said in Android QML RTSP Error:

    rtsp://192.168.1.2:554/user=admin_password=secret_channel=1_stream=0.sdp?real_stream

    Are you sure the URL is right? Have you try it with some other player, i.e. VLC just to check?


Log in to reply