lib/onebox/engine/youtube_onebox.rb in onebox-1.9.13 vs lib/onebox/engine/youtube_onebox.rb in onebox-1.9.14
- old
+ new
@@ -132,9 +132,12 @@
end
# https://developers.google.com/youtube/player_parameters#rel
p['rel'] = 0 if params.include?('rel')
+ # https://developers.google.com/youtube/player_parameters#enablejsapi
+ p['enablejsapi'] = params['enablejsapi'] if params.include?('enablejsapi')
+
URI.encode_www_form(p)
end
def parse_timestring(string)
if string =~ /(\d+h)?(\d+m)?(\d+s?)?/