Android QML RTSP Error
Unsolved
Mobile and Embedded
-
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.7Anyone can help me?
-
@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
-
https://bugreports.qt.io/browse/QTBUG-50539 Does it help?
-
@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?