Embed video content in help topics - Other than Vimeo or Youtube

Simon Sparke
Tera Contributor

When editing a sys_embedded_help_content record, you have the option to add a video into the content.
When attempting to add a video it has the message "Only embedded videos from Youtube and Vimeo are supported. Copy the entire embedded video snippet into the text area below."

If you add in an embedded snippet from any other source other than vimeo or youtube, it strips out your iframe from the HTML when saving the record/field.

I'm assuming this is because the embedded source does not start with "player.vimeo" or "youtube.com"

My organization host videos within SharePoint & I'm able to add these into other areas of servicenow where html editing is available. (and we cannot host them on Vimeo or Youtube)

Does anyone know why there is this limitation and if it can be removed/bypassed?

Thanks 

1 ACCEPTED SOLUTION

Miguel Donayre
ServiceNow Employee
ServiceNow Employee

Hello,

Try this-

Go to the embedded help form—Right-click on the "Content" to pull up the filed context menu. Click on the "Configure Dictionary" option.

 

find_real_file.png

When the new form opens up, go to the attributes section and add a new attribute. 

find_real_file.png

 

You will call it "HTML Sanitize" and set the value to false. This will stop the system from stripping out the code.

find_real_file.png

Now you can add custom code. For example, I upload a video to the db_video table and add the code to the embedded help. 

find_real_file.png

find_real_file.png

 

If you are referencing an outside source, you will need to add the link to a system property - 

Go to sys_properties.LIST once there search for this system property - "glide.html.enable_media_sites"

I added the Microsoft Stream site as an example.

In the value section, add the following after the last value. In this example, after the "vimeo.com" is the last value. You have to add a "," to separate the site. Once you are done, save.

,microsoftstream.com,web.microsoftstream.com

 

find_real_file.png

 

 

I hope that helps out!!

View solution in original post

5 REPLIES 5

Ct111
Giga Sage

Do you know the video extension of the video at the SharePoint site ?

if yes then you can add that type in

System UI > Embed Object Types

 For more information check this link :

https://docs.servicenow.com/bundle/rome-platform-administration/page/use/using-forms/task/t_DefineVideoTypesForHTMLFields.html

Once you create an entry for this video type then start embedding your video via this way :

https://docs.servicenow.com/bundle/rome-platform-user-interface/page/build/help-guided-tours/task/embed-video-help-content.html

 

Mark my Answer as Correct and Helpful if it helps

Hi,

I have attempted what you described, but even if I have the related EmbedObject Type, it is still removing everything in my iframe upon saving an Embedded Help content record.

I appreciate the comment though

Miguel Donayre
ServiceNow Employee
ServiceNow Employee

Hello,

Try this-

Go to the embedded help form—Right-click on the "Content" to pull up the filed context menu. Click on the "Configure Dictionary" option.

 

find_real_file.png

When the new form opens up, go to the attributes section and add a new attribute. 

find_real_file.png

 

You will call it "HTML Sanitize" and set the value to false. This will stop the system from stripping out the code.

find_real_file.png

Now you can add custom code. For example, I upload a video to the db_video table and add the code to the embedded help. 

find_real_file.png

find_real_file.png

 

If you are referencing an outside source, you will need to add the link to a system property - 

Go to sys_properties.LIST once there search for this system property - "glide.html.enable_media_sites"

I added the Microsoft Stream site as an example.

In the value section, add the following after the last value. In this example, after the "vimeo.com" is the last value. You have to add a "," to separate the site. Once you are done, save.

,microsoftstream.com,web.microsoftstream.com

 

find_real_file.png

 

 

I hope that helps out!!

Amazing, thankyou for the screenshots and step by steps.

I was about to update this post this morning as I also Identified this attribute causing this last night as well

Thanks again