Hacker News new | past | comments | ask | show | jobs | submit login

If you have custom controls, putting that element in full screen will work if the browser you're in (and/or the iframe you're in) supports the newer fullscreen API.

It only falls back in the case where that doesn't work (older browser, no allowfullscreen attribute on the iframe) and supports the older API that is just for video tags.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: