<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Dash.js Player Example</title>
</head>
<body>
  <div class="player__wrapper">
    <video class="my-video" controls id="dash"></video>
  </div>
  <script src="http://cdn.dashjs.org/latest/dash.mediaplayer.min.js"></script>
</body>
</html>
.player__wrapper {
  margin: 20px auto;
  max-width: 600px;
}

.my-video {
  width: 100%;
}
const source = "https://demopage.gcdn.co/cmaf/2675_19146/index.mpd";
const player = dashjs.MediaPlayer().create();
player.initialize(
  document.querySelector("#dash"),
  source,
  false
);

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.