kylejginavan / youtube_it

An object-oriented Ruby wrapper for the YouTube GData API
http://groups.google.com/group/ruby-youtube-library
595 stars 223 forks source link

Remove HTTP from URL's to avoid mixed content on secure site #242

Open dankmitchell opened 9 years ago

dankmitchell commented 9 years ago

I am loading videos onto a secure(HTTPS) site but they don't display in production as it throws a mixed content error in the console. Using Chrome by the way.

Here's my code:

@latest_videos ||= yt_client.videos_by(:user => 'foobar').videos

<% @latest_videos[0..2].each do |video| %> <%= raw video.embed_html5({width: '312', height: '240', frameborder: '0', fullscreen: true, modestbranding: "1"}) %> <% end %>