![]() |
Home · All Classes · All Functions · | ![]() |
This element is part of the Qt.multimedia 1.0 module.
import Qt 4.7 import Qt.multimedia 1.0 Video { id: video width : 800 height : 600 source: "video.avi" MouseArea { anchors.fill: parent onClicked: { video.play() } } focus: true Keys.onSpacePressed: video.paused = !video.paused Keys.onLeftPressed: video.position -= 5000 Keys.onRightPressed: video.position += 5000 }
The Video item supports untransformed, stretched, and uniformly scaled video presentation. For a description of stretched uniformly scaled presentation, see the fillMode property description.
The Video item is only visible when the hasVideo property is true and the video is playing.
See also Audio.
Copyright © 2010 Nokia Corporation and/or its subsidiary(-ies) | Trademarks | Qt Mobility Project 1.0.1 |