WordPress Popup Iframe Youtube Https with PrettyPhoto -


a few days ago, converted website https. had many problems solved. last problem have is, youtube videos doesn't work anymore popup prettyphoto, nothing black or white screen. when inspect pop-up iframe youtube load on http, instead of https.

<a href="https://www.youtube.com/watch?v=#" dat-rel="prettyphoto[product-gallery]" title="my youtube video">     <img src="https://img.youtube.com/vi/#/default.jpg" alt="youtube" width="50"> </a> 

anyone familiar problem? or have function wordpress website every iframe have load on https instead of http?

prettyphoto defaults using http iframe video links. issue if site secure, won't load insecure content.

the problem described, couple solutions , 1 attempt merge, on github page: https://github.com/scaron/prettyphoto/issues/156

given version 3.1.6 unminified, quick fix edit prettyphoto.js file , add s after http, there's nothing wrong loading secure content context. edit around line 282 , 297 (one youtube, 1 vimeo).

line 282, edited:

movie = 'https://www.youtube.com/embed/'+movie_id; 

line 297, edited:

movie = 'https://player.vimeo.com/video/'+ match[3] +'?title=0&amp;byline=0&amp;portrait=0'; 

Comments