[Qt-qml] Video Element auto-play

Justin McPherson justin.mcpherson at nokia.com
Mon Jan 10 03:10:21 CET 2011


Hi,

Just setting playing to true should do it.

Video {
   source: "blah"
   playing: true
}

If it doesn't, it's a bug, please file a report :)


- Justin


On 9/01/11 6:32 PM, ext Jason H wrote:
> Oh, nevermind. The On[PROPERTY]Changed slot is available for all properties...
>
>
>
>
> ----- Original Message ----
> From: Jason H<scorp1us at yahoo.com>
> To: qt-qml at trolltech.com
> Sent: Sun, January 9, 2011 3:08:04 AM
> Subject: [Qt-qml] Video Element auto-play
>
> How do I get a video element to start playing ASAP (without keys or clicks)?
>
> I get the first frame displayed, but I don't know how do start it.
>
> I was hoping there would be an onStatusChanged signal, that I could do:
>
> onStatusChanged(oldStatus) {
>
> if (status = Video.Loaded) play();
> }
>
>
>
> _______________________________________________
> Qt-qml mailing list
> Qt-qml at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-qml
>
>
>
>
> _______________________________________________
> Qt-qml mailing list
> Qt-qml at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-qml



More information about the Qt-qml mailing list