Skip to content

Commit

Permalink
Show place holder after hls player is ended
Browse files Browse the repository at this point in the history
  • Loading branch information
mekya committed Mar 28, 2021
1 parent e6ba3bd commit 72208a3
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/main/webapp/play.html
Expand Up @@ -349,7 +349,11 @@
player.ready(function(){
var player = this;
player.on('ended', function() {
tryToPlay(streamId, token, hlsExtension, subscriberId, subscriberCode);
console.log("Playing has been finished");
hideWebRTCElements();
setHLSElementsVisibility(false);
setPlaceHolderVisibility(true);
tryToPlay(streamId, token, hlsExtension, subscriberId, subscriberCode, hlsNoStreamCallback);
});
});
}
Expand Down Expand Up @@ -518,4 +522,5 @@
</script>

</body>
</html>
</html>

0 comments on commit 72208a3

Please sign in to comment.