@ -192,13 +192,13 @@ namespace MediaBrowser.Api
_activeTranscodingJobs . Add ( job ) ;
ReportTranscodingProgress ( job , state , null , null , null , null );
ReportTranscodingProgress ( job , state , null , null , null , null , null );
return job ;
}
}
public void ReportTranscodingProgress ( TranscodingJob job , StreamState state , TimeSpan ? transcodingPosition , float? framerate , double? percentComplete , long? bytesTranscoded )
public void ReportTranscodingProgress ( TranscodingJob job , StreamState state , TimeSpan ? transcodingPosition , float? framerate , double? percentComplete , long? bytesTranscoded , int? bitRate )
{
var ticks = transcodingPosition . HasValue ? transcodingPosition . Value . Ticks : ( long? ) null ;
@ -208,6 +208,7 @@ namespace MediaBrowser.Api
job . CompletionPercentage = percentComplete ;
job . TranscodingPositionTicks = ticks ;
job . BytesTranscoded = bytesTranscoded ;
job . BitRate = bitRate ;
}
var deviceId = state . Request . DeviceId ;
@ -219,7 +220,7 @@ namespace MediaBrowser.Api
_sessionManager . ReportTranscodingInfo ( deviceId , new TranscodingInfo
{
Bitrate = state. TotalOutputBitrate ,
Bitrate = bitRate ? ? state. TotalOutputBitrate ,
AudioCodec = audioCodec ,
VideoCodec = videoCodec ,
Container = state . OutputContainer ,
@ -694,6 +695,7 @@ namespace MediaBrowser.Api
public long? BytesDownloaded { get ; set ; }
public long? BytesTranscoded { get ; set ; }
public int? BitRate { get ; set ; }
public long? TranscodingPositionTicks { get ; set ; }
public long? DownloadPositionTicks { get ; set ; }