Need help with embedding videos in KB articles

iakroush
Kilo Explorer

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

4 REPLIES 4

Gurpreet07
Mega Sage

Have a look at following thread


Re: Embedding mp4 videos in knowledge articles


anthonystables
Mega Contributor

You can embed YouTube videos in the article by disabling the html sanitization through editing the attributes for the text field in the dictionary:



  1. In the KB article, right click on "Text" label for the field and select configure dictionary
  2. Click on Advanced view
  3. In the Attributes field (separated by commas) add: ,html_sanitize=false
  4. Back in the KB article, click on source view then paste the link

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!


Blaze2
Kilo Guru

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