PDA

View Full Version : Phonon MediaObject playback of audio file stops early



mortoray
6th December 2010, 10:17
I am trying to playback some simple wave files and running into problems. I create a simple MediaIObject and call play, like this:


music = Phonon::createPlayer( Phonon::MusicCategory, Phonon::MediaSource( path ) );
music->play();

The sound doesn't play to the end, it stops early. I created a widget to show me the status of the playing, tracking stateChanged and tick and I get this info:
totalTime(): 2414ms
tick time: 928ms
remainingTime: 1486ms
currentTime: 928ms

The sound *can* be heard. The above seems to indicate that Phonon has intentionally stopped the playback. Logging the errorString on stateChanges is also always empty (no errors). The status changes I've also logged and look like:
StoppedState
BufferingState
PlayingState
StoppedState

Any ideas on why this is happening?

mortoray
6th December 2010, 12:37
Defect report at Nokia:
http://bugreports.qt.nokia.com/browse/QTBUG-15891