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

Full-Screen using HTML5 media #41

Open
DestinyDPS opened this issue Apr 2, 2015 · 5 comments
Open

Full-Screen using HTML5 media #41

DestinyDPS opened this issue Apr 2, 2015 · 5 comments

Comments

@DestinyDPS
Copy link

It seems that the Full-Screen option does not activate when opening HTML5 media inside a Shadowbox.. The option is not active.. Not sure if its the media itself or Shadowbox no supporting it..

@jurgen-74
Copy link

I just noticed this post during my update on a similar post:
http://shadowbox.1309102.n2.nabble.com/Fullscreen-youtube-no-longer-works-td7582488.html#a7582494

This is probably the same issue I am facing. Any solutions?

@Toad06
Copy link

Toad06 commented Sep 14, 2015

In fact, it's not really an issue.

Shadowbox displays the content of the page inside an iframe. By default, it is not possible to display content in fullscreen mode inside an iframe. But there's an attribute to do so. And it's really easy to 'fix' :

Open 'shadowbox.js' and Find :
var S='<iframe

And just after that, as a first attribute of the iframe tag, add :
allowfullscreen="true"

Clear cache of your browser and that sould work.

@jurgen-74
Copy link

Wow! Such a simple solution still so effective :)
However, you wrote var S='<iframe but my shadowbox.js version is 3.0.3 and does not contain this line. Instead I found this line: var html='<iframe and added allowfullscreen="true" right behind it.

Thanks!
Jurgen

@DestinyDPS
Copy link
Author

Thank you Toad06.. I will try it.. Hopes its as easy as you suggest.. ;)

Destiny..

@millanmoviemx
Copy link

Excelente mucgisimas gracias por la ayuda me sirvio muchisimo.

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

4 participants