Sha256: 965d93f52ed15c4d24e46aad48efb88c213bd8de0f983bab1d6b1079117cce83
Contents?: true
Size: 794 Bytes
Versions: 7
Compression:
Stored size: 794 Bytes
Contents
# frozen_string_literal: true module Onebox module Engine class KalturaOnebox include Engine include StandardEmbed always_https matches_regexp(/^https?:\/\/[a-z0-9]+\.kaltura\.com\/id\/[a-zA-Z0-9]+/) requires_iframe_origins "https://*.kaltura.com" def preview_html og = get_opengraph <<~HTML <img src="#{og.image_secure_url}" width="#{og.video_width}" height="#{og.video_height}"> HTML end def to_html og = get_opengraph <<~HTML <iframe src="#{og.video_secure_url}" width="#{og.video_width}" height="#{og.video_height}" frameborder='0' allowfullscreen ></iframe> HTML end end end end
Version data entries
7 entries across 7 versions & 1 rubygems