[ignored] Video type broken in Qt 5.3?
QML and Qt Quick
4
Posts
2
Posters
1.2k
Views
1
Watching
-
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.0Rectangle {
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 = "" } }
}
@ -