<video id="video" controls width="280" height="158"></video>
<script src="https://cdn.jsdelivr.net/npm/hls.js@latest/dist/hls.min.js"></script>
<script>
var video = document.getElementById('video');
var hls = new Hls();
hls.loadSource('https://xxx/v3/001.m3u8');
hls.attachMedia(video);
hls.on(Hls.Events.MANIFEST_PARSED, function() {
video.play();
});
</script>