Embedded media (video) does not work (URL, oEmbedded nor HTML with source editor)

Hello,

I am trying to associate videos hosted on third-party services (Canal U and WebTV, two video hosting services used by French universities) with my items as media. However, none of the three solutions work on my end:

  • URL: only displays the first static image of the video and an “empty” player that doesn’t play the video.

  • oEmbed: returns an error message “oEmbed: URL is not allowed Quand la forêt brûle (Version intégrée) | Canal U

  • HTML: using the code editor (source) and copying the embed tags (e.g., ), I don’t get any errors, but the video does not appear in the media nor on the site containing the item in question.

According to our hosting provider (shared hosting on my university’s servers), there are no restrictions on embedding

on these servers (I was able to verify this by testing an iframe on a static HTML page at the root of the directory we have access to). I can’t find any errors in my logs (despite enabling retrieving error messages as explained in the docs).

Has anyone encountered a similar issue? Am I misunderstanding how to add videos as media?

Thank you for your help,

Valentin

(sorry for double posting)

Hello,

I don’t know how OEmbed is supposed to work bu I noticed there is a whitelist of OEmbed URLs here : omeka-s/application/config/module.config.php at develop · omeka/omeka-s · GitHub
and canal-u.tv is not in that list.
Maybe you just need to add it to your config/local.config.php

As an alternative, have you tried HTML with an iframe element ?

Hi @VDC ,

If you’re trying to embed iframes in the HTML editor, don’t forget you need to disable the HTMLPurifier in the Admin Settings to allow embedding iframes (see Settings - Omeka S User Manual ), otherwise, the iframe will get stripped out.

This (adding to config/local.config.php) is the intended way of allowing additional oEmbed sites.

Hello,
Indeed, disabling the HTMLPurifier works fine for me.
Thank you !

This topic was automatically closed 360 days after the last reply. New replies are no longer allowed.