diff options
author | Qt Continuous Integration System <qt-info@nokia.com> | 2010-04-28 01:28:00 (GMT) |
---|---|---|
committer | Qt Continuous Integration System <qt-info@nokia.com> | 2010-04-28 01:28:00 (GMT) |
commit | 7bb199ede885a6f1fe152d93aeef222d742f30fa (patch) | |
tree | 9b3d515470f306e523882457a9d5dcceee876b6b /src/imports | |
parent | a17339e943f21bb6c6e16884f716dd9ab8f94938 (diff) | |
parent | 741d42e28032e5e6f29834c2aacbf65262df7ded (diff) | |
download | Qt-7bb199ede885a6f1fe152d93aeef222d742f30fa.zip Qt-7bb199ede885a6f1fe152d93aeef222d742f30fa.tar.gz Qt-7bb199ede885a6f1fe152d93aeef222d742f30fa.tar.bz2 |
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-multimedia-staging into 4.7-integration
* '4.7' of scm.dev.nokia.troll.no:qt/qt-multimedia-staging:
Fix qdoc error in low-level audio
When deployed on symbian, give player application the standard QT icon
update multimedia qml element doc samples
Diffstat (limited to 'src/imports')
-rw-r--r-- | src/imports/multimedia/qdeclarativeaudio.cpp | 16 | ||||
-rw-r--r-- | src/imports/multimedia/qdeclarativevideo.cpp | 19 |
2 files changed, 33 insertions, 2 deletions
diff --git a/src/imports/multimedia/qdeclarativeaudio.cpp b/src/imports/multimedia/qdeclarativeaudio.cpp index 896f9b7..a163b10 100644 --- a/src/imports/multimedia/qdeclarativeaudio.cpp +++ b/src/imports/multimedia/qdeclarativeaudio.cpp @@ -57,7 +57,21 @@ QT_BEGIN_NAMESPACE import Qt 4.7 import Qt.multimedia 4.7 - Audio { source: "audio/song.mp3" } + Text { + text: "Click Me!"; + font.pointSize: 24; + width: 150; height: 50; + + Audio { + id: playMusic + source: "music.wav" + } + MouseArea { + id: playArea + anchors.fill: parent + onPressed: { playMusic.play() } + } + } \endqml \sa Video diff --git a/src/imports/multimedia/qdeclarativevideo.cpp b/src/imports/multimedia/qdeclarativevideo.cpp index 9b02795..1b51e2c 100644 --- a/src/imports/multimedia/qdeclarativevideo.cpp +++ b/src/imports/multimedia/qdeclarativevideo.cpp @@ -79,7 +79,24 @@ void QDeclarativeVideo::_q_error(int errorCode, const QString &errorString) import Qt 4.7 import Qt.multimedia 4.7 - Video { source: "video/movie.mpg" } + 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 + } \endqml The Video item supports untransformed, stretched, and uniformly scaled video presentation. |