On 09/11/17 10:12, Alexander Thurgood wrote:
Le 09/11/2017 à 10:02, Mike Scott a écrit :
Scott,
You might have better luck posting your question to the developer
mailing list, or directly on the dev IRC channel.
Alex
Maybe I'll go there, as I seem to have found a workable answer. Not that
I understand fully why it works; nor is it a complete and proper solution.
It's all down to "magic numbers". Rule two of code writing - never,
ever, embed literal numbers in the depths of your code.
Well, there's a file mediawindow.cxx that has a grabFrame method that (I
assume) is what's called by whatever displays the static placeholder.
This has embedded within it a so-called default frame - which is at 3.0
seconds or half the media length. With no way that the caller can
request anything else.
So, on the basis that showing the first frame is better than a mid-media
frame (make the video fade from/to black for example), I simply set the
magic constant to 0 and recompiled.
Bingo.
The slide fades in to show the first frame, and the video starts from
there. Exactly what the doctor ordered. What I don't understand is that
when the video finishes, the last frame is now displayed. That too is
exactly what's needed -- but I haven't a clue why: I expected it to jump
back to the first.
I think the code is badly structured - the grabFrame method has no way
of specifying an offset. It should have, and whatever runs the slide
displaying should pick the first or last as appropriate.
Is it really so simple? And do the dev's lurk here at all, or do I need
to stick this on the dev list??
--
Mike Scott (unet2 <at> [deletethis] scottsonline.org.uk)
Harlow Essex England
"The only way is Brexit" -- anon.
--
To unsubscribe e-mail to: users+unsubscribe@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted
Context
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.