upgrade for youku html5 player (#433)

upgrade for youku html5 player (#433)

  • upgrade for youku html5 player

  • Update lib/onebox/engine/youku_onebox.rb

Co-authored-by: Arpit Jalan jalan.xyz@gmail.com

diff --git a/lib/onebox/engine/youku_onebox.rb b/lib/onebox/engine/youku_onebox.rb
index 60f903a..01b786d 100644
--- a/lib/onebox/engine/youku_onebox.rb
+++ b/lib/onebox/engine/youku_onebox.rb
@@ -19,7 +19,13 @@ module Onebox
       end
 
       def to_html
-        "<embed width='570' height='360' src='https://players.youku.com/player.php/sid/#{video_id}/v.swf' type='application/x-shockwave-flash'></embed>"
+<<~HTML
+  <iframe src="https://player.youku.com/embed/#{video_id}"
+          width="640" height="430"
+          frameborder='0'
+          allowfullscreen >
+  </iframe>
+HTML
       end
 
       private

GitHub sha: 350919aa

This commit appears in #433 which was merged by techAPJ.