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

Youtube IFrame #12

Open
kyleabeauchamp opened this issue Jun 21, 2013 · 1 comment
Open

Youtube IFrame #12

kyleabeauchamp opened this issue Jun 21, 2013 · 1 comment

Comments

@kyleabeauchamp
Copy link
Contributor

I was having difficulty getting embedded youtube iframes. I think this is probably the preferred way to handle most videos, so it would be good for these to work.

<iframe data-src="http://www.slashdot.com">
</iframe>

<iframe data-src="http://www.google.com">
</iframe>

<iframe width="640" height="385" src="http://www.youtube.com/embed/T0w7thr_d04?html5=1"></iframe>

https://developers.google.com/youtube/iframe_api_reference#Examples

The top iframe works, but the bottom two do not. For the google example, this is because Google has a "no-iframe" security feature. I've also tried setting the HTML5 tag. This makes the youtube page appear, but disappear after clicking play.

PS: I don't expect you to solve this issue--I'm just documenting my progress here so we have a paper trail for instructional purposes.

@rmcgibbo
Copy link
Owner

The ipython notebook uses an iframe to display youtube videos in the notebook: https://github.com/ipython/ipython/blob/master/IPython/lib/display.py#L42. They're using a slightly different format, but it's still an iframe.

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

No branches or pull requests

2 participants