Video first frame preview on Safari (mac/Iphone)
Videos are shown as a black frame on Safari browsers on Macs AND every browser on Iphones.
The solution to this is simple; automatically add #t=0.1 to the end of the src URL of the HTML <video component; and the first frame will magically appear as a preview frame ;-)
Before (<video class="video" preload="metadata" src="https://foygl.com/media/e2d3422b-1a27-48c9-a3e4-0c55e7f2c62e/IMG_0472.mov" controls="" alt="" title="" playsinline=""></video>
)
After (<video class="video" preload="metadata" src="https://foygl.com/media/e2d3422b-1a27-48c9-a3e4-0c55e7f2c62e/IMG_0472.mov#t=0.1" controls="" alt="" title="" playsinline=""></video>
)
I hope this can be included because it will make many Safari and iPhone users very happy! As said, Chrome on an iPhone has the same behavior.
Question: how can I accomplish this in the code as a temporary/local fix? I've tried editing ./lib/pleroma/web/templates/embed/_attachment.html.eex and other files that are working with the <video tags, but that's not working. I am new to Pleroma and still learning, so any help with this is welcome!
Thanks
Martin Beek