Allows to insert native vimeo or youtube videos as page elements, instead of using the mediaelement.js library.
Requirements
- ILIAS: 8, 9
Installation
> mkdir -p Customizing/global/plugins/Services/COPage/PageComponent
> cd Customizing/global/plugins/Services/COPage/PageComponent
> git clone -b release_9 https://github.com/leifos-gmbh/LfVimeoNative.git
Back in main directory:
> composer dump-autoload
Enter ILIAS Administration > Plugins and activate/configure the plugin.
Vimeo URLs
The plugin needs to create the required embed code including an iframe tag for the video with a src attribute like https://player.vimeo.com/video/123456 or https://player.vimeo.com/video/123456?h=b1fded9860. These URLs differ from the URLs pointing directly to the videos on vimeo. ILIAS tries to translate the following direct URL formats into the player URL formats:
- https://vimeo.com/123456
- https://vimeo.com/123456/b1fded9860
- https://vimeo.com/channels/staffpicks/123456
Youtube URLs
Similar the following youtube formats are supported: