Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed iPad issue where you cannot switch between a full-screen image and video #103

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

deanc
Copy link

@deanc deanc commented Feb 13, 2014

Hi,

You cannot interact with a hidden HTML5 video in a callback on iPad, even if you attempt to show the video at the beginning of the callback code.

A pseudo-example code would be:

$("#button").click(function () { $("video").show(); $(video).get(0).play(); }

This would not work. This PR fixes this by changing the behaviour to hide a video or poster using opacity, which means you can still interact with it even if it's not visible, or about to be made visible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant