mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-08-04 15:28:23 +00:00
update hls params
This commit is contained in:
parent
b68e10c23c
commit
c9be9b4141
13 changed files with 107 additions and 178 deletions
|
|
@ -377,7 +377,7 @@ namespace MediaBrowser.MediaEncoding.Encoder
|
|||
return count;
|
||||
}
|
||||
|
||||
public void ReportTranscodingProgress(TimeSpan? transcodingPosition, float? framerate, double? percentComplete, long? bytesTranscoded)
|
||||
public override void ReportTranscodingProgress(TimeSpan? transcodingPosition, float? framerate, double? percentComplete, long? bytesTranscoded, int? bitRate)
|
||||
{
|
||||
var ticks = transcodingPosition.HasValue ? transcodingPosition.Value.Ticks : (long?)null;
|
||||
|
||||
|
|
@ -385,8 +385,8 @@ namespace MediaBrowser.MediaEncoding.Encoder
|
|||
|
||||
if (!percentComplete.HasValue && ticks.HasValue && RunTimeTicks.HasValue)
|
||||
{
|
||||
var pct = ticks.Value/RunTimeTicks.Value;
|
||||
percentComplete = pct*100;
|
||||
var pct = ticks.Value / RunTimeTicks.Value;
|
||||
percentComplete = pct * 100;
|
||||
}
|
||||
|
||||
if (percentComplete.HasValue)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue