dimsemenov / Magnific-Popup

Light and responsive lightbox script with focus on performance.
http://dimsemenov.com/plugins/magnific-popup/
MIT License
11.38k stars 3.49k forks source link

Open YouTube in popup and not in native app or browser for mobile devices #549

Open vol4ikman opened 10 years ago

vol4ikman commented 10 years ago

Open YouTube in popup and not in native app or browser for mobile devices.

For now it's opened in app or browser. How can I disable it?

Code: jQuery('.open-popup-youtube').magnificPopup({ disableOn: 700, type: 'iframe', mainClass: 'mfp-fade', removalDelay: 160, preloader: false, fixedContentPos: false });

fysalyaqoob commented 7 years ago

Yes i need this also

valentinoPereira commented 6 years ago

Can someone please fix this issue or share a resolution?

studio-jt commented 6 years ago

You need to remove disableOn: 700 to make it work on mobile devices.

PixelHeroMedia commented 3 years ago

This issue still exists, opening a Youtube video in iframe popup, on iphone and android if the Youtube App is installed on the phone it hijacks it and opens it in the app instead of letting magnific popup embed it - is there any way to prevent this?