Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. [ignored] Video type broken in Qt 5.3?
Qt 6.12 LTS is out! See what's new in the release blog

[ignored] Video type broken in Qt 5.3?

Scheduled Pinned Locked Moved QML and Qt Quick
4 Posts 2 Posters 1.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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    Is the Video type broken in Qt 5.3? If I run "Tools" -> "QML/JS" -> "Run Checks" for the code below , I get Unknown component (M300) for the Video type.
    @
    import QtQuick 2.1
    import QtMultimedia 5.0

    Rectangle {
    id: root
    width: 640
    height: 480
    color: "black"

    Video {
        id: videoItem
        anchors.fill: parent
        onStopped: controller.emitAboutToFinish()
    }
    
    Connections {
        target: controller
        onStartPlaying: {
            videoItem.play()
        }
        onStopPlaying: {
            videoItem.stop()
        }
        onSetNextFile: {
            videoItem.source = file
            if (videoItem.playbackState != MediaPlayer.PlayingState && controller.canPlay())
                videoItem.play()
        }
        onStopAndClear: {
            videoItem.stop()
            videoItem.source = ""
        }
    }
    

    }
    @

    1 Reply Last reply
    0
    • O Offline
      O Offline
      onek24
      wrote on last edited by
      #2

      Hello,

      i implemented your code into a new QtQuick project and it displays me no error or unknown component using Qt Creator 3.0.1 based on Qt 5.2.1 Rev 51af63bb9e. Did you implement any custom Components which may interfer with the Video Component?

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

        Hi,

        Just tried with the latest beta version of Qt 5.3, and this didn't show the issue either. So it must have been an issue with the beta version I tried earlier.

        1 Reply Last reply
        0
        • O Offline
          O Offline
          onek24
          wrote on last edited by
          #4

          Well it's a beta, so there might occure some errors for sure.

          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
          • Unsolved