pupunzi / jquery.mb.YTPlayer

use a custom yutube player for a video as background on jQuery framework
https://pupunzi.com/mb.components/mb.YTPlayer/demo/demo.html
1.32k stars 429 forks source link

Full screen not working properly on iOS #365

Closed acasorran closed 6 years ago

acasorran commented 6 years ago

When goes to full screen on iOS (11.4) safari, something it's wrong.

pupunzi commented 6 years ago

On the latest release it should work fine... what kind of issue you have?

acasorran commented 6 years ago

I run 3.2.2 version, but, its no possible to have fullscreen if 'useOnMobile' is set to true.

YTPlayer.opt.realfullscreen = isIframe() || YTPlayer.opt.useOnMobile ? false : YTPlayer.opt.realfullscreen;

pupunzi commented 6 years ago

There are two ways to set the full screen: one is using the browser full screen api that let you use the all screen size never mind the browser window size is (that is in the code the realfullscreen); the other way is to set the player size as big as the browser window is. This second modality is the one adopted for mobiles as you don’t have the capability for the other one.

Il giorno mar 12 giu 2018 alle 10:11 Alejandro notifications@github.com ha scritto:

I run 3.2.2 version, but, its no possible to have fullscreen if 'useOnMobile' is set to true.

YTPlayer.opt.realfullscreen = isIframe() || YTPlayer.opt.useOnMobile ? false : YTPlayer.opt.realfullscreen;

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/pupunzi/jquery.mb.YTPlayer/issues/365#issuecomment-396504578, or mute the thread https://github.com/notifications/unsubscribe-auth/AADdU9tnBuvCJLuwnnuzOjYlo1JiTHorks5t73eugaJpZM4Uijn1 .

--

matteo bicocchiart director open lab s.r.l.

via venezia 18b 50121 firenze italia t. +39 055 5522779

pupunzi website http://pupunzi.com/ pupunzi blog http://pupunzi.open-lab.com/ http://pupunzi.open-lab.com/ open Lab website http://open-lab.com/ twproject website http://twproject.com/

acasorran commented 6 years ago

Ok, thank you for de info, I'll handle with an isMobile() function.