mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-20 21:33:18 -07:00
Add network and bandwidth to current activity
* Move quality profile to info bar
This commit is contained in:
parent
427f24dffe
commit
862c9cea87
3 changed files with 37 additions and 31 deletions
|
@ -267,8 +267,7 @@
|
|||
var overlay_state = 'State <strong>Unknown</strong>';
|
||||
var state_icon = '<i class="fa fa-fw fa-question-circle"></i> ';
|
||||
}
|
||||
var q = (s.media_type != 'track') ? ' (' + s.quality_profile + ')' : '';
|
||||
$('#overlay-play-state-' + key).html(overlay_state + q);
|
||||
$('#overlay-play-state-' + key).html(overlay_state);
|
||||
$('#play-state-' + key).html(state_icon);
|
||||
|
||||
% if config['pms_use_bif']:
|
||||
|
@ -351,6 +350,10 @@
|
|||
}
|
||||
$('#transcode-state-' + key).html(ts);
|
||||
|
||||
// update the stream quality profile and bandwidth
|
||||
$('#stream-quality-' + key).html((s.media_type != 'track') ? s.quality_profile : '');
|
||||
$('#stream-bandwidth-' + key).html(s.bandwidth);
|
||||
|
||||
// update the stream progress times
|
||||
$('#stream-eta-' + key).html(moment().add(parseInt(s.duration) - parseInt(s.view_offset), 'milliseconds').format(time_format));
|
||||
$('#stream-view-offset-' + key).html(millisecondsToMinutes(s.view_offset, false));
|
||||
|
@ -426,15 +429,11 @@
|
|||
$('#currentActivity').on('mouseover', '.dashboard-hover-container', function () {
|
||||
$(this).closest('.dashboard-instance').addClass('hover');
|
||||
var key = $(this).closest('.dashboard-instance').data('key');
|
||||
if (!($('#stream-' + key).is(':visible'))) {
|
||||
$('#terminate-button-' + key).fadeIn(200);
|
||||
}
|
||||
});
|
||||
$('#currentActivity').on('mouseleave', '.dashboard-hover-container', function () {
|
||||
var key = $(this).closest('.dashboard-instance').data('key');
|
||||
if (!($('#stream-' + key).is(':visible'))) {
|
||||
$(this).closest('.dashboard-instance').removeClass('hover');
|
||||
$('#terminate-button-' + key).fadeOut(200);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue