添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode . Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
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?

@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?

Upvote the answer(s) that helped you solve the issue
Use "Topic Tools" button to mark your post as Solved
Add screenshots via postimage.org
Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future