https://github.com/dimsemenov/Magnific-Popup/issues/725
Yah MP have patterns
Late to the party, in case someone needs to use the actual embed URL for Magnific, here is my process:
Write a function that gets the input URL, checks it's format and then ensures that the /embed/ url is returned.
In Magnific markup always use the processed URL which is in the embed format.
Add the following patterns to magnific, to essentially use the input URL as the url without processing it further:
// Video popup, Backend enforces embed URL before it gets here.
$('.js-popup-video').magnificPopup({
type: 'iframe',
iframe: {
patterns: {
youtube: {
index: 'youtube.com/',
id: function (url) { return url },
src: '%id%'
},
vimeo: {
index: 'vimeo.com/',
id: function (url) { return url },
src: '%id%'
}
}
}
});
iPhone again not work
https://stackoverflow.com/questions/8141652/youtube-embedded-video-autoplay-feature-not-working-in-iphone/8142187#8142187
Many new policy make auto play as a threat. So either mute audio or clever let user click at least one ?
https://developers.google.com/web/updates/2017/09/autoplay-policy-changes
So no chance, let only frequent interact user have it autoplay.
Yah MP have patterns
Late to the party, in case someone needs to use the actual embed URL for Magnific, here is my process:
Write a function that gets the input URL, checks it's format and then ensures that the /embed/ url is returned.
In Magnific markup always use the processed URL which is in the embed format.
Add the following patterns to magnific, to essentially use the input URL as the url without processing it further:
// Video popup, Backend enforces embed URL before it gets here.
$('.js-popup-video').magnificPopup({
type: 'iframe',
iframe: {
patterns: {
youtube: {
index: 'youtube.com/',
id: function (url) { return url },
src: '%id%'
},
vimeo: {
index: 'vimeo.com/',
id: function (url) { return url },
src: '%id%'
}
}
}
});
iPhone again not work
https://stackoverflow.com/questions/8141652/youtube-embedded-video-autoplay-feature-not-working-in-iphone/8142187#8142187
Many new policy make auto play as a threat. So either mute audio or clever let user click at least one ?
https://developers.google.com/web/updates/2017/09/autoplay-policy-changes
So no chance, let only frequent interact user have it autoplay.
The information in your article is excellent; it's great to find a blog with so much information; thank you. I'm a blogger, and I wrote an article about how to change the color or rgb of your msi laptop's keyboard . As a result, if you're interested in that topic, you can read my article by this blog.
ReplyDeleteI was really impressed by this software. It gives me help in solving problems. that's nice.
ReplyDeletehttps://thepcsoft.com/anydesk-crack-latest/