Forum Discussion
Microsoft Stream and oEmbed
- Nov 21, 2018
Our oEmbed endpoint allows you to programmatically switch a regular stream link into it's iFrame/embed equivalent. There would need to be code written that detects when you paste the stream link into wordpress, that it crafts the right call to oEmbed and then gets the iframe out of the response and puts it into the blog post instead of the link.
Did you write some plugin/code or do configuration on Wordpress to call our oEmbed endpoint?
From a quick search it looks like Wordpress supports a bunch of oEmbed endpoints by default (like YouTube and other public/consumer products), but depending on if you host your own WP or not you might be able to add URLs to whitelist, but not sure if this works with Stream or not, you'd have to play with it.
Our oEmbed endpoint allows you to programmatically switch a regular stream link into it's iFrame/embed equivalent. There would need to be code written that detects when you paste the stream link into wordpress, that it crafts the right call to oEmbed and then gets the iframe out of the response and puts it into the blog post instead of the link.
Did you write some plugin/code or do configuration on Wordpress to call our oEmbed endpoint?
From a quick search it looks like Wordpress supports a bunch of oEmbed endpoints by default (like YouTube and other public/consumer products), but depending on if you host your own WP or not you might be able to add URLs to whitelist, but not sure if this works with Stream or not, you'd have to play with it.
I know this is old, but I am having the same issue. I am trying to create a Stream Embed Block plugin. It seems to be working except for the fact that the block just displays the Stream URL and not the iframe embed code. As I understand things, I should be able to have wp_oembed_add_provider( '#https://*.microsoftstream.com/video/.*#i', 'https://web.microsoftstream.com/oembed', true ); in my plugin to add Stream as a new embed provider. WordPress is matching the pattern but it seems it is not getting a response from the Stream embed?