Quantcast
Channel: DOCU - Foren
Viewing all articles
Browse latest Browse all 6559

Administration - Installation - Core: Customize Media Object Rendering (Vimeo)

$
0
0
I want to embed a video from Vimeo in a page in an ILIAS learning module (via iframe). Since HTML in text elements doesn't get rendered anymore, I have to add a media object containing this Vimeo link. The current behavior is, that a grey box with the title "Plugin not supported" is rendered.

But when I add a media object with a YouTube link, this link is rendered as a correct iframe and the embedded video works.

I found the xsl definition for this YouTube rendering logic in /Services/COPage/xsl/page.xsl. I adapted it a little bit for Vimeo videos and added the following snippet above the YouTube definition: https://www.codepile.net/pile/VBPQYvrd

This works as I expected. But: this change will be gone after an update.

Question 1: Is there another way to achieve the embedding of a Vimeo video with an iframe in a ILIAS lerning module page?
Quesiton 2: If not, is there a way to extend this file (maybe in the customizing folder?) with only the snippet for Vimeo in a way, that it is not lost after an update?

Any hints and help are much appreciated!


Viewing all articles
Browse latest Browse all 6559

Trending Articles