Skip to content

Commit

Permalink
Merge pull request #81 from bitmovin/feature/fix-custom-ui-bigseekbar
Browse files Browse the repository at this point in the history
  • Loading branch information
felix-hoc authored Apr 12, 2022
2 parents 3bfad99 + 968e1fc commit 0712456
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions player/player-ui-styling/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ a {
/*background-color: #ff1237;*/
/*}*/

.bmpui-seekbar.bigseek > * {
font-size: 3em;
}

.bmpui-seekbar-backdrop.orange {
background-color: #ff931e !important;
}
Expand Down
6 changes: 3 additions & 3 deletions player/player-ui-styling/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ var source = {
poster: 'https://bitmovin-a.akamaihd.net/content/sintel/poster.png'
};

var currentUiManager, isBigSeekbar = false, isSmallscreen = false;
var currentUiManager, isSmallscreen = false;

var playerContainer = document.getElementById('player-container');
var player = new bitmovin.player.Player(playerContainer, conf);
Expand All @@ -43,8 +43,8 @@ document.getElementById('watermark').addEventListener('click', function() {


document.getElementById('bigseek').addEventListener('click', function() {
$('.bmpui-ui-seekbar').css('font-size', isBigSeekbar ? '1em' : '3em');
isBigSeekbar = !isBigSeekbar;
var seekbar = $('.bmpui-seekbar')[0];
seekbar.classList.toggle('bigseek');
});

document.getElementById('color2').addEventListener('click', function() {
Expand Down

0 comments on commit 0712456

Please sign in to comment.