summaryrefslogtreecommitdiffstats
path: root/src/gui/image/qimage.cpp
diff options
context:
space:
mode:
authorGareth Stockwell <gareth.stockwell@sosco.com>2009-08-18 08:12:47 (GMT)
committerGareth Stockwell <gareth.stockwell@sosco.com>2009-08-18 08:15:29 (GMT)
commit008d464ea90a0a33f16bd6ce29563e7dd206b91f (patch)
tree7156f7124e8b520b1559e4cce1f0f2476cf075e6 /src/gui/image/qimage.cpp
parent427c415d876d57042a55e8b66730888512ac0ed1 (diff)
parent6b7603a0a2fed844b1264d8deb0ce78b110858c4 (diff)
downloadQt-008d464ea90a0a33f16bd6ce29563e7dd206b91f.zip
Qt-008d464ea90a0a33f16bd6ce29563e7dd206b91f.tar.gz
Qt-008d464ea90a0a33f16bd6ce29563e7dd206b91f.tar.bz2
Merged recognizer changes with abstraction for audio / video playback.
Audio playback now working to the same extent as prior to the abstraction, with one regression: the initial volume level in the UI is set to zero, although playback is audible. Some cleanup is required: - Functionality common to AudioPlayer and VideoPlayer (e.g. tick timer, changeState function) should be moved into AbstractPlayer. - Files may be opened by multiple instances of MediaObject at at time. For example, the musicplayer example app uses one instance to read file metadata, and one for the actual playback. In order to avoid KErrInUse errors from the file server, files must be opened with an EShare* flag and passed around by handle. At present this is done in a slightly hacky way (i.e. AbstractPlayer::setSource is renamed to setFileSource). - The pointer held by MediaObject::m_player must be checked for nullness in many of the public API calls. This could be made cleaner by implementing a stub derivation of AbstractPlayer, which returns sensible default values. Note that, if functionality such as tick timer handling is going to be pushed upwards from AudioPlayer / VideoPlayer, we should add an intermediate class to the hierarchy so that the overhead of constructing DummyPlayer objects is minimised. At present, media type (audio / video) is only recognised from file streams - this needs to be extended to include HTTP streaming aswell.
Diffstat (limited to 'src/gui/image/qimage.cpp')
0 files changed, 0 insertions, 0 deletions