Magnific-popup: Open YouTube in popup and not in native app or browser for mobile devices

Created on 18 Sep 2014  路  4Comments  路  Source: dimsemenov/Magnific-Popup

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 });

Most helpful comment

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

All 4 comments

Yes i need this also

Can someone please fix this issue or share a resolution?

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

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?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

raffeb picture raffeb  路  6Comments

Madeirense picture Madeirense  路  6Comments

vdotm picture vdotm  路  5Comments

jglesner picture jglesner  路  3Comments

landitus picture landitus  路  3Comments