Component.onCompleted: audio.play();
Audio{
id: audio
autoLoad: false
source: "D:\\music\\Bossa\\MATT BIANCO\\2009 - Hifi
Bossanova\\01_Hifi Bossanova.mp3"
volume: volumeBar.volume/100
onDurationChanged: {
console.log(audio.duration)
}
}
When this code is executed, the signal onDurationChanged emited 5
times. Then, after delay sent 2 more times. In all duration is 0. In
docs I found "If the media doesn't have a fixed duration (a live
stream for example) this will be 0.", but I want to play local audio
file. What am I doing wrong?
I use latest snapshot of Qt-Mobility and Qt 4.7.0 RC1 on Windows 7.
_______________________________________________
Qt-mobility-feedback mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-mobility-feedback