Skip to content

Web Guide VI : Webpage Video Support

Dani John edited this page Jul 31, 2021 · 41 revisions

CefSharp browser plugin does not support x264 codec due to licensing; when trying to play it will be a blank white screen.

Edge Webview2 plugin supports x264 codec.

Creating a webm video webpage for Cefsharp

  1. Make sure installed version of Lively is v0.9.6 or above.
  2. Video files need to be in .webm format with VP8 or higher codec, this is a licensing limitation.
  3. Create a new text file, open in notepad and paste the following code:
<!DOCTYPE html>
<head>
  <style>
    body{
      margin: 0;
      overflow: hidden;
    }
    video{
      width: 100%;
      height: 100%;
    }
  </style>
</head>
<body>
  <video src="video_file_name.webm"  autoplay muted loop></video>
</body>
</html>
  1. Save & change the file extension to html.
  2. Place the video file in the same folder with the correct name: video_file_name.webm
  3. (Optional) Use Livelypropertie's Folder Dropdown to change video clip during playback.

Converting existing videos to webm

  1. To convert existing video files you can use third party software such as HandBreak
  2. Open handbreak & in Source selection select the video file.
  3. In Summary under Format select WebM.
  4. In Video select VP8 or VP9 as Video Codec.
  5. Click on Start Encode.