The opencast filter can be used to embed opencast videos.
The opencast filter can be used to embed opencast videos.
The filter takes in the html pasted by the opencast repository and replaces it by an iframe, which loads the <ahref="https://github.com/polimediaupv/paella">Paella player</a> with the respective opencast event.
The filter takes the HTML pasted by the opencast repository and replaces it by an iframe, which loads the [Paella Player 7](https://paellaplayer.upv.es/) with the respective opencast event.
The filter itself has no influence on the embedded content, but simply takes the information created by the repository.
The filter itself has no influence on the embedded content, but simply takes the information created by the repository.
Look into the documentation of [repository_opencast](https://github.com/Opencast-Moodle/moodle-repository_opencast) for details on that.
Look into the documentation of [repository_opencast](https://github.com/Opencast-Moodle/moodle-repository_opencast) for details on that.
The first configuration "URL template for filtering" specifies the URL type that is replaced by the filter. This URL should correspond to the URLs inserted by the repository plugin. In the config, you must use the placeholder [EPISODEID] to indicate where the episode id is contained in the link, e.g. `http://stable.opencast.de/play/[EPISODEID]`.
The second configuration "URL to Paella config.json" specifies the path to the Paella player config. This config can be adapted if you want to modify the look or behavior of the Paella player.
Notice: Make sure to configure [mod_opencast](https://github.com/Opencast-Moodle/moodle-mod_opencast) before using the filter. If [mod_opencast](https://github.com/Opencast-Moodle/moodle-mod_opencast) isn't configured correctly, the paella player won't be able to display the video.