Adding oEmbed provider to a multisite instance
-
I am trying to add Kaltura as an oEmbed provider for all the sites in my Multisite instance.
I tried adding this code to the functions file of a theme:
add_action( 'init', 'add_oembed_kaltura' ); function add_oembed_kaltura() { wp_oembed_add_provider( 'https://media.online.uga.edu/id/*', 'https://media.online.uga.edu/oembed', false); }but that didn’t work. So, I created a plugin with just one file with the same code in it and installed the plugin and network activated it. (I deleted the code from the functions file first). It still isn’t working, the oembed links are just displaying as text on pages. Is there an issue with the code I’m using? Thanks for any help!
-
I face the same challenge. This used to work I had a similar piece of code created as plugin for my wordpress network. Some functionality changed within Kaltura when we moved to KMS5 and this plugin stopped working.
Kaltura gave the following response when I inquired:
The use of an Oembed link is in fact, the privilege to create/produce an embed code on the fly, bases on specific parameters of the video. An embed code and Oembed URL are not acting in the same manner outside of MediaSpace – The 1st actually contains the embed code while the 2nd is API based used to *produce* an embed code.
The request to allow anonymous users to only *watch* the video without allowing them to embed it onward is not possible. If an anonymous user can see the content with an Oembed url, he is actually creating an embed code on the fly and the page in which he sees the content actually contains the embed code. The code is open to be taken, embedded, and watched by anyone.
Therefore, for security reasons, it is not possible to allow one anonymous user (who was given the link to the blog) to view the content while preventing it from a different anonymous user (who was not given the link to the blog).
If you find a way around this issue I would love to hear about it.
The topic ‘Adding oEmbed provider to a multisite instance’ is closed to new replies.