# frozen_string_literal: true module Onebox module Engine class KalturaOnebox include Engine include StandardEmbed matches_domain("kaltura.com", allow_subdomains: true) always_https requires_iframe_origins "https://*.kaltura.com" def self.matches_path(path) path.match?(%r{^/id/[a-zA-Z0-9]+$}) end def preview_html og = get_opengraph <<~HTML HTML end def to_html og = get_opengraph <<~HTML HTML end end end end