[Building Sakai] antisamy to allow iframe for Kaltura video
İrfan SÜRAL
irfansural at gmail.com
Mon Dec 15 07:06:53 PST 2014
First of all you should create HTML5 player. To do that in KMC under Studio there is “Universal Studio” tab, click to Add new player or convert your existing flash player to HTML5 one.
That’s all.
In order to get your html5 embed player go to Content Entries tab and select Preview & Embed action of video.
In light box make sure you have selected your HTML5 player name under “Select Player” and also you can choose your embed type like iframe etc..
Irfan
From: Laura Gekeler [mailto:lgekeler at nd.edu]
Sent: Monday, December 15, 2014 3:23 PM
To: İrfan SÜRAL; Sakai Dev List
Subject: Re: [Building Sakai] antisamy to allow iframe for Kaltura video
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 <mailto: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 <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%5bstreamerType%5d=auto> &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 <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%5bstreamerType%5d=auto> &playerId=kaltura_player_1418385714&entry_id=0_vg83m024&flashvars[streamerType]=auto" style="width: 560.0px;height: 395.0px;" width="560" allowfullscreen=”” webkitallowfullscreen="" mozAllowFullScreen="" ><span itemprop=&quot;name&quot; content=&quot;Proje Kültürü Modül 5&quot;></span> <span itemprop=&quot;description&quot; content=&quot;&quot;></span> <span itemprop=&quot;duration&quot; content=&quot;154&quot;></span> <span itemprop=&quot;thumbnail&quot; content=&quot;http://kaltura-servername/p/101/sp/10100/thumbnail/entry_id/0_vg83m024/version/100012/acv/182 <http://kaltura-servername/p/101/sp/10100/thumbnail/entry_id/0_vg83m024/version/100012/acv/182&quot;></span>> &quot;></span> <span itemprop=&quot;width&quot; content=&quot;560&quot;></span> <span itemprop=&quot;height&quot; content=&quot;395&quot;></span></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 <mailto: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 <mailto: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/5049a0af/attachment.html
More information about the sakai-dev
mailing list