Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Cannot display RTSP link in QML

Cannot display RTSP link in QML

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 2 Posters 2.6k Views 1 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.
  • C Offline
    C Offline
    cristeab
    wrote on last edited by A Former User
    #1

    Hi

    I am trying to display in qml an RTSP stream using MediaPlayer and VideoOutput components, but I always get ResourceError. The stream plays successfully with VLC. I am using Qt5.7 on win10 x64. Could someone explain what could be wrong ?

    thanks
    Bogdan

    MediaPlayer {
                        id: mediaplayer
                        autoPlay: true
                        source: <url>
    }
    VideoOutput {
                        anchors.fill: parent
                        source: mediaplayer
                    }
    
    ? 1 Reply Last reply
    0
    • C cristeab

      Hi

      I am trying to display in qml an RTSP stream using MediaPlayer and VideoOutput components, but I always get ResourceError. The stream plays successfully with VLC. I am using Qt5.7 on win10 x64. Could someone explain what could be wrong ?

      thanks
      Bogdan

      MediaPlayer {
                          id: mediaplayer
                          autoPlay: true
                          source: <url>
      }
      VideoOutput {
                          anchors.fill: parent
                          source: mediaplayer
                      }
      
      ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      @cristeab Hi! Looks like QTBUG-37999.

      1 Reply Last reply
      1
      • C Offline
        C Offline
        cristeab
        wrote on last edited by
        #3

        Indeed, that bug might be related. I have been able to solve the problem by using libVLC with QML wrapper: https://github.com/RSATom/QmlVlc

        ? 1 Reply Last reply
        0
        • C cristeab

          Indeed, that bug might be related. I have been able to solve the problem by using libVLC with QML wrapper: https://github.com/RSATom/QmlVlc

          ? Offline
          ? Offline
          A Former User
          wrote on last edited by
          #4

          @cristeab Hey, that QML VLC wrapper looks extremely useful. Thank you very much for sharing that hint!

          1 Reply Last reply
          1
          • ? Offline
            ? Offline
            A Former User
            wrote on last edited by
            #5

            This looks also very good: https://github.com/vlc-qt

            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