Skip to content

Commit

Permalink
Fixed player hls info
Browse files Browse the repository at this point in the history
  • Loading branch information
yumata committed Nov 15, 2023
1 parent 8309c10 commit b8a49e9
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -1957,7 +1957,7 @@
var object$2 = {
author: 'Yumata',
github: 'https://github.com/yumata/lampa-source',
css_version: '2.5.9',
css_version: '2.6.0',
app_version: '1.9.9',
cub_domain: 'cub.red'
};
Expand Down Expand Up @@ -10477,8 +10477,8 @@
function hlsBitrate(seconds) {
if (hls && hls.streamController && hls.streamController.fragPlaying && hls.streamController.fragPlaying.baseurl && hls.streamController.fragPlaying.stats) {
var ch = Lang.translate('title_channel') + ' ' + parseFloat(hls.streamController.fragLastKbps / 1000).toFixed(2) + ' ' + Lang.translate('speed_mb');
var bt = ' / ' + Lang.translate('torrent_item_bitrate') + ' ~' + parseFloat(hls.streamController.fragPlaying.stats.total / 1000000 / 10 * 8).toFixed(2) + ' ' + Lang.translate('speed_mb');
var bf = ' / ' + Lang.translate('title_buffer') + ' ' + Utils$2.secondsToTimeHuman(seconds);
var bt = '  •  ' + Lang.translate('torrent_item_bitrate') + ' ~' + parseFloat(hls.streamController.fragPlaying.stats.total / 1000000 / 10 * 8).toFixed(2) + ' ' + Lang.translate('speed_mb');
var bf = '  •  ' + Lang.translate('title_buffer') + ' ' + Utils$2.secondsToTimeHuman(seconds);
Lampa.PlayerInfo.set('bitrate', ch + bt + bf);
}
}
Expand Down Expand Up @@ -11732,7 +11732,7 @@
error = setTimeout(function () {
elems.error.addClass('hide');
}, 10000);
} else if (need == 'stat') stat$1(value);else if (need == 'bitrate') elems.stat.text(value);
} else if (need == 'stat') stat$1(value);else if (need == 'bitrate') elems.stat.html(value);
}

function pieces(cache) {
Expand Down
14 changes: 14 additions & 0 deletions css/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -4612,6 +4612,13 @@ body.true--mobile.orientation--portrait .player-panel__quality {
font-size: 1.3em;
font-weight: 300;
}
.player-info__values .value--size span {
background: rgba(225, 255, 255, 0.18);
padding: 0.1em 0.5em;
-webkit-border-radius: 0.3em;
-moz-border-radius: 0.3em;
border-radius: 0.3em;
}
.player-info__values .value--pieces {
display: -webkit-box;
display: -webkit-flex;
Expand Down Expand Up @@ -4675,6 +4682,13 @@ body.true--mobile .player-info .head-backward {
margin: 0;
padding: 0;
}
body.true--mobile .player-info .head-backward__title {
text-align: left;
white-space: nowrap;
overflow: hidden;
-o-text-overflow: ellipsis;
text-overflow: ellipsis;
}
body.true--mobile .player-info .head-backward__button {
left: -1.5em;
top: -0.9em;
Expand Down

0 comments on commit b8a49e9

Please sign in to comment.