ffranke / Laker-Compendium

Laker is a compendium of files, frameworks, styles and tips for designing digital publications in HTML5.
http://www.lakercompendium.com
304 stars 41 forks source link

Rotating from Portrait to Landscape and back affects Poster image of videos #35

Open k8fisher opened 12 years ago

k8fisher commented 12 years ago

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 :

Now:

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?

VIDEO OBJECT SITS IN THE HTML FILE FOR THE PAGE WITHIN "dossier-start-bg" layer as:

FLATTENED PAGE (12.JPG in this case) ASSIGNED IN THE CSS WHICH ACCOMPANIES EACH PAGE

.dossier-start-bg { background-image:url(../../images/twelve.png); }

Question: Just wondering if anyone has succesfully executed this sort of thing / come across problems with transparent gif / png poster properties not rendering properly in the ipad simulator? 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

ffranke commented 12 years ago

Did you also tried into on an iPad? The Simulator is sometimes a bit strange when it comes to video...

k8fisher commented 12 years ago

Will give it a go when the ipads charged up. The video object definitely didnt return to the poster object after it played on my previous incarnation of the magazine. Just sat on the first / last frame (which are black).

Will see what happens when Im fully charged and fire up the second incarnation.

Should the video object revert to the poster image once its played rather than sit on the first/last frame?

Kate

ffranke commented 12 years ago

does ios support poster images? I always thought there were some problems with it.

k8fisher commented 12 years ago

Heck I didnt realise there might be a bit of an err on the side of not working consistantly. I guess what Id need to do is test for the end of the video and then hide the layer it sits in? fingers crossed that might achieve what Im looking to do?

Thanks for you super speedy response btw, hope everythings going well with your new endeavours

ffranke commented 12 years ago

there are some new endaevours which are taking a lot of time, but im fine ;)

k8fisher commented 12 years ago

Good to hear things are well with you if a little hectic