- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2020 02:04 AM
Hi guys,
I would like to add videos to knowledge articles.
Like I have read the docs there are two ways to put a video in an article:
1. Embed the video code in source code of the article (works)
2. Insert/edit video and put video URL in associated field (not working)
If I use the second method the video is inserted in the article body, but the play-button is grayed out. I already set the html-sanitizer = false.
Maybe good to know:
- I tried this on my dev instance, where knowledge is ootb. (except the html_sanitizer attribute)
- the play-button seems to be greyed-out on form load
Does anyone know, if there is any other configuration needed, to set the play-button available?
Thanks for your help!
Regards,
Dominique
Solved! Go to Solution.
- Labels:
-
Knowledge Management

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2020 02:02 PM
Hi Miguel,
It looks like they ran in to the same issue, but it's not a ServiceNow problem, it's how YouTube allows you to embed their videos, if you use the direct link it won't work (on any platform)
On youtube you need to click on Share, then get the embedded code that looks like this:
https://www.youtube.com/embed/oxqi3vChdP0
instead of the direct link that will not work that looks like this:
https://www.youtube.com/watch?v=oxqi3vChdP0

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2020 03:44 PM
Hello,
Can you show how your HTML looks?
Does the video URL play on other platforms, like have you tried running it on W3 Schools?
https://www.w3schools.com/html/tryit.asp?filename=tryhtml_default
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2020 01:21 AM
Hi,
the HTML Code is this:
<p><video src="https://www.youtube.com/v/oxqi3vChdP0" controls="controls"></video></p>
It seems, that the link is changed when insert into the article: https://www.youtube.com/watch?v=oxqi3vChdP0
But that seems to make no difference, it is also not playable.
I tested the video on w3schools and I am also not able to push the play button.
Any other ideas? 🙂
Thank for your help!
Regards,
Dominique

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2020 10:28 AM
I see what the problem is, it's not a SN issue, it's just how YT wants you to format the link to embed it's videos.
try to replace your link with: https://www.youtube.com/embed/oxqi3vChdP0

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2020 11:23 AM
Hello
I just answered this in a couple of different posts -
In the HTML body of the article click on the "source code button"
I am using this video-
<iframe width="560" height="315" src="https://www.youtube.com/embed/VhoXY_rOUio" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
When the souce code editor opens drop that code into where you want it to appare . I just dropped in at the top
That should work for you