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

Check nested iframes for video elements #36

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

KZeni
Copy link

@KZeni KZeni commented May 12, 2017

I've added a function which checks the iframes on a page for same source policy and then checks if they have a video in them. It's even potentially recursive if the site uses nested iframes. The existing video element locating is used first & all other functionality should be left working as it was previously. That being said, I haven't yet tested this code within the safari extension itself.

Here's an example of a site using nested iframes for their self-hosted video element: https://www.giantbomb.com/chat/

I've added a function which checks the iframes on a page for same source policy and then checks if they have a video in them. It's even potentially recursive if the site uses nested iframes. The existing video element locating is used first & all other functionality should be left working as it was previously. That being said, I haven't yet tested this code within the safari extension itself.

Here's an example of a site using nested iframes for their self-hosted video element: https://www.giantbomb.com/chat/
@jeffbax
Copy link

jeffbax commented Nov 30, 2017

Not sure if it is related, but I noticed that the videos on PBS also tend to be wrapped in an iframe and thus unfortunately don't work with PiPifier. I'm guessing this is to do with most iframe videos?

Example here: http://www.pbs.org/the-farthest/video/

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.

2 participants