carlonluca / pot

Raspberry Pi accelerated video/image rendering with Qt: custom QML components and QtMultimedia backend.
https://bugfreeblog.duckdns.org
GNU General Public License v2.0
177 stars 43 forks source link

Duration atribute is not trigerred once changed #52

Closed alvarolcn closed 8 years ago

alvarolcn commented 8 years ago

I have just made a simple program using PiomxTextures. I need to know current media duration in order to trigger an event and this attribute changes asynchronously, so in desktop mode i am using onDurationChanged to dispatch event. But this is no longer working in Piomxtextures.

MediaPlayer { id: player autoPlay: false onDurationChanged: { console.log('Duration changed: ' + player.duration) console.log('Finish early') timer.interval = (player.duration - 1200) timer.start() }

penguinest commented 8 years ago

Maybe you can try to get the duration from metadata and then, make you own countdown counter.

alvarolcn commented 8 years ago

In fact i need to trigger an event when the duration metadata is loaded, and i am achieving this using onDurationChanged in desktop mode.

carlonluca commented 8 years ago

Build 5.2.1 should include the signal. Reopen if needed.