YouTube Preview Images via https?
#1
Posted 04 November 2011 - 05:19 AM
I have a little problem using tubepress on a clients facebook page via wordpress. Preview Images are loaded using http only (e.g. src="http://i.ytimg.com/vi/....") which causes problems especially on IE (Security warnings). Is there a chance to have those images loaded vial https?
As facebook requires https since October, I'd be grateful for a solution. Thanks!
#2
Posted 04 November 2011 - 08:07 PM
I would change this line from
return $result;to
return str_replace('http', 'https', $result);Please give that a whirl and let us know if it works for you. I'd be curious to know if all thumbnails can be served up over HTTPS.
#3
Posted 05 November 2011 - 10:41 AM
I happened to experiment with a sample thumbnail over HTTPS and it actually works!
Sorry not to mention before posting here that https work on images ;-)
Please give that a whirl and let us know if it works for you. I'd be curious to know if all thumbnails can be served up over HTTPS.
I tested the modification on a youtube channel and it works — with two small exceptions:
1.) when loading some pixel-gif:
The page at https://www.facebook.com/R.... displayed insecure content from http://s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif.
2.) on the YouTube fullscreen option:
The page at about:blank displayed insecure content from http://www.youtube.com/embed/...
Hope this can be fixed, too — and thanks for helping! :))
#4
Posted 05 November 2011 - 01:09 PM
The pixel.gif must be loaded from the actual YouTube embedded player, as I've never seen that before. I wonder if we can load the embedded player over HTTPS, too, and if that would fix the pixel along with the fullscreen option. What happens if you change this line from
$link = new org_tubepress_api_url_Url('http://www.youtube.com/embed/' . $videoId);to
$link = new org_tubepress_api_url_Url('https://www.youtube.com/embed/' . $videoId);
#5
Posted 07 November 2011 - 02:23 AM
Pixel gifs are loading secure, so by now there's is only one small error message in chrome:
Unsafe JavaScript attempt to access frame with URL https://www.facebook.com/R... from frame with URL https://www.youtube.com/embed/xnVYkH7Y7rU?rel=0&autoplay=0&loop=0&fs=0&showinfo=0&wmode=transparent&hd=1. Domains, protocols and ports must match.I guess this issue is on YouTubes' side?
Thanks
Andreas
#6
Posted 10 November 2011 - 12:07 AM
#7
Posted 10 November 2011 - 06:06 AM
thanks for solving this issue. Will the modifications be included in the next update?
Thanks again
Andreas
#9
Posted 04 December 2011 - 04:24 AM
Thanks for the feedback. I went ahead and filed a ticket for this so it doesn't slip through the cracks.
The pixel.gif must be loaded from the actual YouTube embedded player, as I've never seen that before. I wonder if we can load the embedded player over HTTPS, too, and if that would fix the pixel along with the fullscreen option. What happens if you change this line from$link = new org_tubepress_api_url_Url('http://www.youtube.com/embed/' . $videoId);to$link = new org_tubepress_api_url_Url('https://www.youtube.com/embed/' . $videoId);
PLease forgive my ignorance but where do I replace this line of code? Do I need to extract something from youtube, which is the source of my playlist? The tubepress editor page?
And I hope we're still referring to the original problem. The fact that the thumbnails don't load or play?
This is the tubepress page on my website, (which is still under construction..) just for a reference.
http://laughoutquiet.com/videos-2
Thanks!