How to include a Microsoft Stream video on embedded help?

Alex Macdonel
Tera Expert

We're upgrading to Kingston and we became aware of the embedded help, we'd like to include videos in here, but instead of hosting them on youtube or vimeo we'd like to host on Microsoft Stream as we have more control over them.

I've played with the embed code and funny thing is that when I paste it, I am able to get it to work on the editor, but when I save it, the whole <div> section gets cleared out except for a few parameters:

 

Code working in editor:

<p>Here is where we can explain how to create a KB article in detail.</p>
<div class="video"><iframe src="https://web.microsoftstream.com/embed/video/cc042a5a-339c-45f6-8106-b9ffbe1b48c7?autoplay=false&amp;showinfo=false" frameborder="0" allowfullscreen=""></iframe>
<p class="p">Video</p>
</div>
<p>&nbsp;</p>

After saving the record I see this:

<p>&nbsp;</p>
<p>Here is where we can explain how to create a KB article in detail.</p>
<div class="video"><iframe frameborder="0" allowfullscreen=""></iframe>
<p class="p">Video</p>
</div>

 

Is this the html sanitizer at work? I tried adding a video entry to the whitelist, but it doesn't seem to work:

video: {
attribute:["controls","width","height","src"],
}

 

Anyone tried embedding videos and had better luck? Any pointers you can give me?

Thanks!

16 REPLIES 16

Alex Macdonel
Tera Expert

I got a reply from SN, only YouTube and Vimeo are supported.

It's disconcerting that for this particular piece SN is very strict, but for other things you have full control. I hope that more people ask SN if they can host their videos on other platform so that the Enhancement request that was created gets traction.

Have you heard whether they have changed this or not? We are wanting to embed Stream videos, too.

No, we moved on. I haven't tried on a newer version though.

Do you thing this got updated?

 

You can modify the following sys property glide.html.enable_media_sites and add required media site e.g. web.microsoftstream.com. Then it should work.