hlsPlayer = new Hls(getHlsConfig(llHlsEnabled));
hlsPlayer.on(Hls.Events.MANIFEST_PARSED, function() {
console.log("Play with HLS.js");
remoteVideo.play();
});
hlsPlayer.loadSource(videoSrc);
hlsPlayer.attachMedia(remoteVideo);
when using this code
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../dependencies/bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="./hls-player.css">
<!-- <link rel="stylesheet" href="video-js.css"> -->
<title>HLS VideoJS Player Minimal</title>
<script type="text/javascript" src="../js/flashphoner.min.js"></script>
<!-- <script type="text/javascript" src="../dependencies/jquery/jquery-1.12.0.js"></script>
<script type="text/javascript" src="../dependencies/jquery/jquery-ui.js"></script> -->
<script type="text/javascript" src="../dependencies/js/utils.js"></script>
<script type="text/javascript" src="./hls-player.js"></script>