From slakan, 5 Years ago, written in PowerShell.
Embed
  1. $fragments += $html.InnerXml
  2. $fragments += @'
  3. <script src="https://cdn.jsdelivr.net/npm/hls.js@canary"></script>
  4. <video id="video" controls autoplay class="videoCentered"></video>
  5. <script>
  6.  var video = document.getElementById('video');
  7.  if(Hls.isSupported()) {
  8.    var hls = new Hls();
  9.    hls.loadSource('https://kamera.vegvesen.no/public/0529008_1/manifest.m3u8');
  10.    hls.attachMedia(video);
  11.    hls.on(Hls.Events.MANIFEST_PARSED,function() {
  12.      video.play();
  13.  });
  14. }
  15. </script>
  16. '@
  17. $fragments += "<p class='footer'>$(get-date)</p>"