Simbul / baker

The HTML5 ebook framework to publish interactive books & magazines on iPad & iPhone using simply open web standards
http://bakerframework.com
1.53k stars 378 forks source link

Detect page visibility after page loaded in 'three-cards' mode #1221

Closed qusai87 closed 10 years ago

qusai87 commented 10 years ago

Hello,

I'm struggling to find if the page is visible to user or hidden to start/pause video that auto-play automatically.

I used page visibility API: http://davidwalsh.name/page-visibility

but it always return 'visible' on first run even if the page is currently not the active one, but when you swipe to next page it change to 'hidden' and 'Visible'.

how can I find the state on the first run, so I can decide to play video automatically or not ?

Thanks

Simbul commented 10 years ago

Hello. This issue board is not supported anymore. Please head on to the new issue tracker at https://github.com/bakerframework/baker/issues.