summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/multimedia/video/qmlvideo/qml/qmlvideo/VideoItem.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/multimedia/video/qmlvideo/qml/qmlvideo/VideoItem.qml b/examples/multimedia/video/qmlvideo/qml/qmlvideo/VideoItem.qml
index 8372acb7e..a98ee2b30 100644
--- a/examples/multimedia/video/qmlvideo/qml/qmlvideo/VideoItem.qml
+++ b/examples/multimedia/video/qmlvideo/qml/qmlvideo/VideoItem.qml
@@ -49,12 +49,11 @@
****************************************************************************/
import QtQuick 2.0
-import QtMultimedia 5.0
+import QtMultimedia
VideoOutput {
id: root
height: width
- source: mediaPlayer
property alias duration: mediaPlayer.duration
property alias mediaSource: mediaPlayer.source
@@ -72,6 +71,7 @@ VideoOutput {
id: mediaPlayer
autoLoad: false
loops: Audio.Infinite
+ videoOutput: root;
onError: {
if (MediaPlayer.NoError != error) {