VideoWidget API
Richard
richardmg at trolltech.com
Tue Jul 10 09:22:48 CEST 2007
Suggestion:
Does it sound sound to override:
QSize VideoWidget::sizeHint() const;
in VideoWidget, and let it return the size of the frames of the
current movie?
-Richard
On Jul 10, 2007, at 8:56 AM, Richard wrote:
> The same problem arise for the first frame, should it be shown when
> a movie is loaded, but not yet started to play? Perhaps the best
> choice is to let the user decide upon this himself for each
> VideoWidget by adding something like:
>
> void setFrameForState(Phonon::State state, qint64 time); // -1 =
> use brush = default.
>
> -Richard
>
>
>
> On Jul 9, 2007, at 5:26 PM, Matthias Kretz wrote:
>
>> I like it. We should document that in the Backend APIs though...
>>
>> There's also another issue: what should happen when the video has
>> finished
>> playback. Show the last frame or clear the widget to the
>> background color?
>> The xine backend currently keeps showing the last frame and the
>> only way to
>> clear the VideoWidget is to disconnect the MediaObject from the
>> VideoWidget
>> (AFAIK that should work). Any opinions?
>>
>> On Monday 09 July 2007, Richard wrote:
>>> Cool. Thats even better!
>>>
>>> -Ric
>>>
>>> On Jul 9, 2007, at 3:49 PM, Bradley T Hughes wrote:
>>>> On Monday 09 July 2007 15:36:40 Richard wrote:
>>>>> Hi,
>>>>>
>>>>> Suggestion for VideoWidget. Can we add something like:
>>>>>
>>>>> bool setVideoBgBrush(const QBrush &brush);
>>>>> QBrush videoBgBrush();
>>>>>
>>>>> to the API?
>>>>> This is the brush to use for drawing the widget background when a
>>>>> movie is not playing. If the backend cannot set/use the given
>>>>> brush,
>>>>> 'setVideoBgBrush' should just return false.
>>>>>
>>>>> Any feedback?
>>>>
>>>> Why not just use widget->palette().brush(widget->backgroundRole
>>>> ()) ?
>>>>
>>>> --
>>>> Bradley T. Hughes - bhughes at trolltech.com
>>>> Trolltech ASA - Sandakervn. 116, P.O. Box 4332 Nydalen, 0402 Oslo,
>>>> Norway
>>>
>>> --
>>> Richard Moe Gustavsen
>>> Software Engineer II, Trolltech ASA
>>> Sandakerveien 116, NO-0484 Oslo, Norway
>>
>>
>>
>> --
>> ________________________________________________________
>> Matthias Kretz (Germany) <><
>> http://Vir.homelinux.org/
>> MatthiasKretz at gmx.net, kretz at kde.org,
>> Matthias.Kretz at urz.uni-heidelberg.de
>> _______________________________________________
>> Phonon-backends mailing list
>> Phonon-backends at kde.org
>> https://mail.kde.org/mailman/listinfo/phonon-backends
>
>
>
> --
> Richard Moe Gustavsen
> Software Engineer II, Trolltech ASA
> Sandakerveien 116, NO-0484 Oslo, Norway
>
>
> _______________________________________________
> Phonon-backends mailing list
> Phonon-backends at kde.org
> https://mail.kde.org/mailman/listinfo/phonon-backends
--
Richard Moe Gustavsen
Software Engineer II, Trolltech ASA
Sandakerveien 116, NO-0484 Oslo, Norway
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/phonon-backends/attachments/20070710/635e0d91/attachment.html
More information about the Phonon-backends
mailing list