Android QML RTSP Error
-
wrote on 9 Sept 2016, 10:45 last edited by
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? -
wrote on 9 Sept 2016, 11:19 last edited by johniesm 9 Sept 2016, 11:32
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
-
wrote on 7 Mar 2019, 10:24 last edited by
https://bugreports.qt.io/browse/QTBUG-50539 Does it help?
-
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?
wrote on 7 Mar 2019, 14:38 last edited by@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?