Need help with embedding videos in KB articles
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-28-2015 06:02 AM
Hello All,
When I add a video file to a KB article, the video starts playing as soon as I open the KB. I need help with some code to wrap a media player around the video file. I want to add a video from the video library (.mov or .swf) to a KB article and I want to be able to click on it to play it and control when to pause, stop, rewind, fast forward, ...etc.
I know how to embed a URL link such as Youtube, but we don't want to make all of our KBs (videos) public.
Any help would be greatly appreciated.
Issa Akroush
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-29-2015 12:03 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-19-2015 02:10 AM
You can embed YouTube videos in the article by disabling the html sanitization through editing the attributes for the text field in the dictionary:
- In the KB article, right click on "Text" label for the field and select configure dictionary
- Click on Advanced view
- In the Attributes field (separated by commas) add: ,html_sanitize=false
- Back in the KB article, click on source view then paste the link
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-19-2015 03:39 AM
Thank you very much Anthony. I really appreciate your help.
We have decided to load the video files on our media server and just use the URL to the location (in our KB article). That seem to work for us.
Thanks again, and have a wonderful day!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-11-2017 11:06 AM
Navigate to the HTML Sanitizer.
Replace the HTML_WHITELIST Object with
HTML_WHITELIST : {
globalAttributes: {
attribute:[],
attributeValuePattern:{}
},
video:{
attribute:["controls","width","height"],
},
source:{
attribute:["src"],
},
},
Go to the Knowledge article that you want to embed the video in and follow these steps:
1. Save the video to your desktop
2. Navigate to or Create a new KB Article
3. Attach the video to the article
4. Once the article is attached make the attachment visible on the article so you can copy link to the attachment.
5. Copy the URL for the video attachment on the article.
6. Go back into Edit mode and use the <> HTML source view
6. Add the HMTL below in the HTML source view
<video width="800" height="480" controls="controls">
<source src="insert video's thml">
</video>
7. Click OK and then Save/View the article
Go to the Knowledge article that you want to embed the video in and follow these steps:
1. Save the video to your desktop
2. Navigate to or Create a new KB Article
3. Attach the video to the article
4. Once the article is attached make the attachment visible on the article so you can copy link to the attachment.
5. Copy the URL for the video attachment on the article.
6. Go back into Edit mode and use the <> HTML source view
6. Add the HMTL below in the HTML source view
<video width="800" height="480" controls="controls">
<source src="insert video's thml">
</video>
7. Click OK and then Save/View the article