Skip to content

Commit

Permalink
add an action to show the buffering overlay to the playground
Browse files Browse the repository at this point in the history
  • Loading branch information
stonko1994 committed Dec 4, 2024
1 parent e14eb24 commit 58d2ab2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -594,6 +594,11 @@ <h4 class="card-title">
.animate({ height: maxHeight }, 1000)
.animate({ height: initialHeight }, 1000);
},
'Show Buffering overlay': function() {
var player = uiManager.currentUi.playerWrapper.getPlayer();

player.fireEventInUI(bitmovin.player.PlayerEvent.StallStarted, {});
}
};
$.each(actions, function(title, handler) {
$('#actions').append($('<button type="button" class="btn btn-primary btn-sm">' + title + '</button>').click(function() {printResult(handler(), title);})).append(' ');
Expand Down

0 comments on commit 58d2ab2

Please sign in to comment.