Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Android QML RTSP Error
Forum Updated to NodeBB v4.3 + New Features

Android QML RTSP Error

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
5 Posts 4 Posters 3.2k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    johniesm
    wrote on 9 Sept 2016, 10:45 last edited by
    #1

    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?

    P 1 Reply Last reply 7 Mar 2019, 14:38
    0
    • R Offline
      R Offline
      raven-worx
      Moderators
      wrote on 9 Sept 2016, 11:11 last edited by
      #2

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

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      0
      • J Offline
        J Offline
        johniesm
        wrote on 9 Sept 2016, 11:19 last edited by johniesm 9 Sept 2016, 11:32
        #3

        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
        
        1 Reply Last reply
        0
        • V Offline
          V Offline
          VaL Doroshchuk
          wrote on 7 Mar 2019, 10:24 last edited by
          #4

          https://bugreports.qt.io/browse/QTBUG-50539 Does it help?

          1 Reply Last reply
          0
          • J johniesm
            9 Sept 2016, 10:45

            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?

            P Offline
            P Offline
            Pablo J. Rogina
            wrote on 7 Mar 2019, 14:38 last edited by
            #5

            @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

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved