ffranke/Laker-Compendium — Issue #35: Rotating from Portrait to Landscape and back affects Poster image of videos
Author: k8fisher
Created: 2011-10-17 16:25:49+00:00
State: open

Hi

a while back I started experimenting with Laker, thank god for all Florians work as at this point I wasnt having much luck with Baker at this time. Things like orientation detection etc had been implemented at that point.

Anyway Im trying to convert a flattened PDF to a laker epub. I need to add videos to these page.

Previous experiment :

* assign the page (jpg) as a poster property of the HTML5 video object in question.
Problem: the poster object (jpg) changes size when you switch orientation (portrait -> landscape -> portrait), it shrinks. The only way to clear the problem is to navigate to another page.

Now:
* trying to add a transparent gif to the poster property of the html5 video object, over the top of the page (jpg). Ideally Id like the video to go full screen when playing then return back to the page when the video is playing.

Problem: transparent gif not rendering properly in the ipad simulator (looks fine in safari), all I see is the first frame of the video instead of the video obect. Is it possible to force the poster to replace the video once it has finished playing?

Question:
Just wondering if anyone has succesfully executed this sort of thing / come across problems with transparent gif / png poster properties not rendering properly? How would I get the video to return to the poster object (invisible gif) after the video has finished?

Any thoughts welcome, Ive been experienting the last few months between other bits and not been able to find a solution / reason why the video object isnt working in the way expected

Kate