Skip to content

Commit

Permalink
add action button to trigger the buffering overlay
Browse files Browse the repository at this point in the history
  • Loading branch information
stonko1994 committed Dec 9, 2024
1 parent cafd7af commit 17b797b
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 @@ -602,6 +602,11 @@ <h4 class="card-title">
.animate({ height: maxHeight }, 1000)
.animate({ height: initialHeight }, 1000);
},
'Show Buffering overlay': function() {
const 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 17b797b

Please sign in to comment.