Sha256: ca7a54745b208a816d603b1c00a3c640004a990073af7e451eab61a985c89b7c
Contents?: true
Size: 736 Bytes
Versions: 1
Compression:
Stored size: 736 Bytes
Contents
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]+/) 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
onebox-1.8.81 | lib/onebox/engine/kaltura_onebox.rb |