module Onebox module Engine class WistiaOnebox include Engine include StandardEmbed matches_regexp(/https?:\/\/(.+)?(wistia.com|wi.st)\/(medias|embed)\/.*/) always_https def placeholder_html tw = get_twitter escaped_src = ::Onebox::Helpers.normalize_url_for_output(tw[:image]) "" end def to_html tw = get_twitter src = tw[:url].gsub("?twitter=true", "") escaped_src = ::Onebox::Helpers.normalize_url_for_output(src) <<-HTML HTML end end end end