FEATURE: add placeholder icon for Twitch oneboxes

FEATURE: add placeholder icon for Twitch oneboxes

diff --git a/lib/onebox/mixins/twitch_onebox.rb b/lib/onebox/mixins/twitch_onebox.rb
index 56ee5a9..95a2b16 100644
--- a/lib/onebox/mixins/twitch_onebox.rb
+++ b/lib/onebox/mixins/twitch_onebox.rb
@@ -19,6 +19,10 @@ module Onebox
           "player.twitch.tv/?"
         end
 
+        def placeholder_html
+          "<span class='onebox-video-placeholder'></span>"
+        end
+
         def to_html
           "<iframe src=\"//#{base_url}#{query_params}&autoplay=false\" width=\"620\" height=\"378\" frameborder=\"0\" style=\"overflow: hidden;\" scrolling=\"no\" allowfullscreen=\"allowfullscreen\"></iframe>"
         end

GitHub sha: baa42863

1 Like