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
    

Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.