Jump to content


These Forums Are Now Read-Only


For TubePress support, please post a question here or open a support ticket and we will be glad to assist.


Photo

YouTube Preview Images via https?


  • Please log in to reply
8 replies to this topic

#1 Andreas Schoening

Andreas Schoening

    Newbie

  • Members
  • Pip
  • 4 posts

Posted 04 November 2011 - 05:19 AM

Hi all — didn't really find that question here, so I'm going to open a new thread. Sorry if there's already an answer.

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 eric

eric

    Lead Developer

  • TubePress Staff
  • 2787 posts

Posted 04 November 2011 - 08:07 PM

I was about to respond with "No this isn't possible" but I happened to experiment with a sample thumbnail over HTTPS and it actually works! Neat! This needs to be first-class feature of TubePress, but in the mean time you could like hack TubePress to get started with this.

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 Andreas Schoening

Andreas Schoening

    Newbie

  • Members
  • Pip
  • 4 posts

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 eric

eric

    Lead Developer

  • TubePress Staff
  • 2787 posts

Posted 05 November 2011 - 01:09 PM

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


#5 Andreas Schoening

Andreas Schoening

    Newbie

  • Members
  • Pip
  • 4 posts

Posted 07 November 2011 - 02:23 AM

Wohooo — it works :)

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 eric

eric

    Lead Developer

  • TubePress Staff
  • 2787 posts

Posted 10 November 2011 - 12:07 AM

That's great news. And yes, the JavaScript error is coming from somewhere else - probably YouTube but it's tough to say for sure.

#7 Andreas Schoening

Andreas Schoening

    Newbie

  • Members
  • Pip
  • 4 posts

Posted 10 November 2011 - 06:06 AM

Eric,
thanks for solving this issue. Will the modifications be included in the next update?

Thanks again
Andreas

#8 eric

eric

    Lead Developer

  • TubePress Staff
  • 2787 posts

Posted 11 November 2011 - 08:37 PM

That's the plan, yes. Keep an eye on the ticket if you'd like to be sure. But the changes are really simply to implement. Thank you again for helping to experiment!

#9 Amy Jo Steele

Amy Jo Steele

    Member

  • Members
  • PipPip
  • 14 posts

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!