Videos in documentation - Developer Guide - Cortex XSIAM - Cortex - Security Operations

Cortex XSIAM Developer Guide

Product
Cortex XSIAM
Creation date
2023-05-01
Last date published
2024-06-04
Category
Developer Guide

A video can provide a strong addition to the documentation either as a demo video or tutorial. The preferred video format is MP4.

Videos stored in GitHub

Because of their size and to keep the main content repository small, large media files are stored in a separate repository.

To add a video file, open a pull request with the video file at content-assets repository. The file should be placed in the directory: Assets/<PackName>/.

All videos should be included with absolute URLs. To obtain a URL to a video from GitHub follow the same steps as detailed for images, but use the content-assets repository.

Include the video using the HTML <video> tag, such as:

<video controls>
    <source src="https://github.com/demisto/content-assets/raw/7982404664dc68c2035b7c701d093ec026628802/Assets/FeedJSON/Json_generic_feed_demo.mp4"
            type="video/mp4"/>
    Sorry, your browser doesn't support embedded videos. You can download the video at: https://github.com/demisto/content-assets/blob/7982404664dc68c2035b7c701d093ec026628802/Assets/FeedJSON/Json_generic_feed_demo.mp4 
</video>

Note

GitHub markdown preview does not display the video (it shows the browser not supported message). The xsoar.pan.dev site does display the video properly. You can see an example video in the JSON Feed integration documentation.

Large files (over 50MB)

For files larger than 50MB, we require using git-lfs to add these files to the content repo. See the GIT LFS Tutorial at the GithHub site for more details.

To add a large file:

  1. Clone or fork the content-assets repository.

  2. Verify you have git-lfs installed. See instructions here.

  3. Install git-lfs in the repo: git lfs install.

  4. Copy the video file to the correct directory: Assets/<PackName>.

  5. Add the video as a tracked file: git lfs track Assets/<PackName>/<video_file_name>.mp4.

  6. Add the file to git: git add Assets/<PackName>/<video_file_name>.mp4.

  7. Add the .gitattributes file: git add .gitattributes.

  8. Commit and push using: git commit and git push.

  9. Open a pull request.

Videos via external hosting (YouTube)

You can also embed videos from external services such as YouTube via an iframe. From the external service choose to share the video and choose the Embed option. Then choose to Copy the embed snippet.

Share Dialog

youtube-embed.png

Embed Dialog

youtube-embed-2.png

Paste the embed snippet in the README file. Change the allowfullscreen option to include allowfullscreen="true". For example:

<iframe width="560" height="315" src="https://www.YouTube.com/embed/s9lRtJltTGI" frameborder="0" 
allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" 
allowfullscreen="true"></iframe>