[Building Sakai] antisamy to allow iframe for Kaltura video

Laura Gekeler lgekeler at nd.edu
Mon Dec 15 05:23:28 PST 2014


What is the source of the embed code you've posted here? Is this from
Kaltura Media Gallery itself (by clicking on the Embed Code link)? Or do
you create it yourself?

I ask because the embed code Kaltura is giving me is still flash-based.
Here is an example:

<object id="kaltura_player_1_ggz5idb4" name="kaltura_player_1_ggz5idb4"
type="application/x-shockwave-flash" allowFullScreen="true"
allowNetworking="all" allowScriptAccess="always" height="360" width="480"
bgcolor="#000000" xmlns:dc="http://purl.org/dc/terms/" xmlns:media="
http://search.yahoo.com/searchmonkey/media/" rel="media:video" resource="
https://www.kaltura.com/kwidget/wid/_1023422/ui_conf_id/21300071/entryId/1_ggz5idb4"
data="
https://www.kaltura.com/kwidget/wid/_1023422/ui_conf_id/21300071/entryId/1_ggz5idb4"><param
name="allowFullScreen" value="true" /><param name="allowNetworking"
value="all" /><param name="allowScriptAccess" value="always" /><param
name="bgcolor" value="#000000" /><param name="flashVars"
value="&entryId=1_ggz5idb4" /><param name="movie" value="
https://www.kaltura.com/kwidget/wid/_1023422/ui_conf_id/21300071/entryId/1_ggz5idb4"
/></object>

I'd like to get HTML5 embed code.

Laura


Laura Gekeler
LMS Administrator //Concurrent Instructor
University of Notre Dame
P:574-631-2402


On 14 December 2014 at 18:13, İrfan SÜRAL <irfansural at gmail.com> wrote:
>
> Hi All,
>
>
>
> I am trying to embed Kaltura 9.19.8 HTML5 video embed code to Sakai 10.2
> Lesson Builder Tool.
>
>
>
> I have activated antisamy in saka.properties like;
>
>
>
> content.cleaner.use.legacy.html=false
>
> content.cleaner.default.low.security=true
>
>
>
> And I modified antisamy rules many times to test iframe in Lessonbuilder
> editor but no luck so far.
>
>
>
> I can play with attributes of antisamy file
> (/sakai/antisamy/low-security-policy.xml) without any problem.
>
>
>
> The thing that I couldn’t do is I can’t let ckeditor to pass html codes
> inside iframe tag
>
>
>
> My Embed Code
>
>
>
> <iframe src="
> http://kaltura-servername:80/p/101/sp/10100/embedIframeJs/uiconf_id/23448201/partner_id/101?iframeembed=true&playerId=kaltura_player_1418385714&entry_id=0_vg83m024&flashvars[streamerType]=auto"
> width="560" height="395" allowfullscreen webkitallowfullscreen
> mozAllowFullScreen frameborder="0" style="width: 560px; height: 395px;"
> itemprop="video" itemscope itemtype="http://schema.org/VideoObject">
>
>
> <span itemprop="name" content="What is Spring"></span>
> <span itemprop="description" content=""></span>
> <span itemprop="duration" content="154"></span>
> <span itemprop="thumbnail" content="
> http://kaltura-servername/p/101/sp/10100/thumbnail/entry_id/0_vg83m024/version/100012/acv/182
> "></span>
> <span itemprop="width" content="560"></span>
> <span itemprop="height" content="395"></span>
>
> </iframe>
>
> After I saved my embed code I got the following source of ckeditor;
>
>
>
>
>
> <iframe frameborder="0" height="395" itemprop="video" itemtype="
> http://schema.org/VideoObject" src="
> http://kaltura-servername:80/p/101/sp/10100/embedIframeJs/uiconf_id/23448201/partner_id/101?iframeembed=true&amp;playerId=kaltura_player_1418385714&amp;entry_id=0_vg83m024&amp;flashvars[streamerType]=auto"
> style="width: 560.0px;height: 395.0px;" width="560" allowfullscreen=””
> webkitallowfullscreen="" mozAllowFullScreen="" >&lt;span
> itemprop=&amp;quot;name&amp;quot; content=&amp;quot;Proje
> K&uuml;lt&uuml;r&uuml; Mod&uuml;l 5&amp;quot;&gt;&lt;/span&gt; &lt;span
> itemprop=&amp;quot;description&amp;quot;
> content=&amp;quot;&amp;quot;&gt;&lt;/span&gt; &lt;span
> itemprop=&amp;quot;duration&amp;quot;
> content=&amp;quot;154&amp;quot;&gt;&lt;/span&gt; &lt;span
> itemprop=&amp;quot;thumbnail&amp;quot; content=&amp;quot;
> http://kaltura-servername/p/101/sp/10100/thumbnail/entry_id/0_vg83m024/version/100012/acv/182&amp;quot;&gt;&lt;/span&gt;
> &lt;span itemprop=&amp;quot;width&amp;quot;
> content=&amp;quot;560&amp;quot;&gt;&lt;/span&gt; &lt;span
> itemprop=&amp;quot;height&amp;quot; content=&amp;quot;395&amp;quot;&gt;
> &lt;/span&gt;</iframe>
>
>
>
>
>
>
>
>
>
> I have problem in allowfullscreen webkitallowfullscreen mozAllowFullScreen
> attributes (which shouldn’t be like allowfullscreen ="")
>
> and I have encoded version of <span> tags. Which means I can’t let HTML
> codes inside iframe.
>
>
>
> Is it possible to do what I need with my embed code and current antisamy?
>
> Kernel should be first patched to allow that?
>
>
>
> I have created this feature for sakai kaltura contrib too.
> https://jira.sakaiproject.org/browse/SKE-258
>
>
>
> Any ideas?
>
>
>
> Thank you
>
> Regards,
>
>
>
> Irfan SURAL
>
>
>
> _______________________________________________
> sakai-dev mailing list
> sakai-dev at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>
> TO UNSUBSCRIBE: send email to
> sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of
> "unsubscribe"
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20141215/b832fb75/attachment.html 


More information about the sakai-dev mailing list