-
Notifications
You must be signed in to change notification settings - Fork 280
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Browser complains about mixed content on sites using SSL #156
Comments
If a site is loaded using https:// youtube videos (and probably other embeds) will not load because the script hard codes http in the video URLs The following fix is as follows: - only applies to video urls (any impact on other embeds unknown) - checks for the current document protocol (http: or https:) - if protocol is file:, then it defaults to - http for youtube as it is existing behaviour - specified protocol in the vimeo url (new behaviour) See this fix in action at by clicking the vimeo videos on the right. https://www.listcorp.com/asx/ler
If a site is loaded using https:// youtube videos (and probably other embeds) will not load because the script hard codes http in the video URLs The following fix is as follows: - only applies to video urls (any impact on other embeds unknown) - checks for the current document protocol (http: or https:) - if protocol is file:, then it defaults to - http for youtube as it is existing behaviour - specified protocol in the vimeo url (new behaviour) See this fix in action at by clicking the vimeo videos on the right. https://www.listcorp.com/asx/ler
If a site is loaded using https:// youtube videos (and probably other embeds) will not load because the script hard codes http in the video URLs The following fix is as follows: - only applies to video urls (any impact on other embeds unknown) - checks for the current document protocol (http: or https:) - if protocol is file:, then it defaults to http: as is existing behaviour See this fix in action at by clicking the vimeo videos on the right. https://www.listcorp.com/asx/ler
With TLS sites becoming more popular this is going to cause more issues. |
Currently having this issue. Please merge! |
I solved the problem by fixing the lines: http://player.vimeo.com/video/"+i[3]+"?title=0&byline=0&portrait=0",settings.autoplay&&(movie+="&autoplay=1;"), to https://player.vimeo.com/video/"+i[3]+"?title=0&byline=0&portrait=0",settings.autoplay&&(movie+="&autoplay=1;"), I gotta do it to every single site with prettyphoto & vimeo though... |
@MageNext which file did you edited? |
Edit PrettyPhoto.js Replace every "http://" with "//" if you find any This will make pretty use same protocol with the browser, ssl or not. |
is this project dead? why is this still not solved? |
After having scoured the entire web & every forum regarding the issue with PrettyPhoto not displaying Youtube or Vimeo video's - I have stumbled upon an alternative method of getting both to display. The solution is to implement video ( media content ) via the iFrame solution.
You can use an image ( like the example above ) or simple text WITH IMAGE :
WITH TEXT :
`NOTE : If you want, you could include/show as many videos as you wish by simply changing the rel="prettyPhoto[iframe] to plural rel="prettyPhoto[iframes] - and just add the amount of vids you want below each iFrame. Hope this will help anyone who may still be searching for the solution to this problem with PrettyPhoto |
If a site is loaded using https:// youtube videos (and probably other embeds) will not load because the script hard codes http in the video URLs
Here's the error from the chrome web inspector:
The text was updated successfully, but these errors were encountered: