[Qt-qml] Video Element auto-play

Justin McPherson justin.mcpherson at nokia.com
Fri Jan 14 05:02:27 CET 2011


Hi,

On 13/01/11 6:12 PM, Mcpherson Justin (Nokia-MS-Qt/Brisbane) wrote:
> On 13/01/11 9:24 AM, ext Jason H wrote:
>> Is there a way to get the media attributes and work with them?
>> (like for handling different aspect ratio videos 4:3 16:9, etc.)
>> I ask because the metaData property is not working for me:
>>    Video {
>>        source: "1-tweaked.ogg"
>>        width:  metaData.resolution.width
>>        height: metaData.resolution.height
>>        playing: true
>>
>> }
>
> There is never a guarantee that any particular meta-data item will be
> available, this will not work in the general case.

However, I think for resolution it should always be made available. Task 
QTMOBILITY-990.


- Justin


More information about the Qt-qml mailing list