@ -132,7 +132,7 @@ namespace MediaBrowser.Api
/// Called when [transcode beginning].
/// Called when [transcode beginning].
/// </summary>
/// </summary>
/// <param name="path">The path.</param>
/// <param name="path">The path.</param>
/// <param name=" streamId">The stream identifier.</param>
/// <param name=" playSessionId">The play session identifier.</param>
/// <param name="transcodingJobId">The transcoding job identifier.</param>
/// <param name="transcodingJobId">The transcoding job identifier.</param>
/// <param name="type">The type.</param>
/// <param name="type">The type.</param>
/// <param name="process">The process.</param>
/// <param name="process">The process.</param>
@ -141,7 +141,7 @@ namespace MediaBrowser.Api
/// <param name="cancellationTokenSource">The cancellation token source.</param>
/// <param name="cancellationTokenSource">The cancellation token source.</param>
/// <returns>TranscodingJob.</returns>
/// <returns>TranscodingJob.</returns>
public TranscodingJob OnTranscodeBeginning ( string path ,
public TranscodingJob OnTranscodeBeginning ( string path ,
string stream Id,
string playSession Id,
string transcodingJobId ,
string transcodingJobId ,
TranscodingJobType type ,
TranscodingJobType type ,
Process process ,
Process process ,
@ -160,7 +160,7 @@ namespace MediaBrowser.Api
DeviceId = deviceId ,
DeviceId = deviceId ,
CancellationTokenSource = cancellationTokenSource ,
CancellationTokenSource = cancellationTokenSource ,
Id = transcodingJobId ,
Id = transcodingJobId ,
StreamId = stream Id
PlaySessionId = playSession Id
} ;
} ;
_activeTranscodingJobs . Add ( job ) ;
_activeTranscodingJobs . Add ( job ) ;
@ -324,10 +324,10 @@ namespace MediaBrowser.Api
/// Kills the single transcoding job.
/// Kills the single transcoding job.
/// </summary>
/// </summary>
/// <param name="deviceId">The device id.</param>
/// <param name="deviceId">The device id.</param>
/// <param name=" streamId">The stream identifier.</param>
/// <param name=" playSessionId">The play session identifier.</param>
/// <param name="deleteFiles">The delete files.</param>
/// <param name="deleteFiles">The delete files.</param>
/// <returns>Task.</returns>
/// <returns>Task.</returns>
internal void KillTranscodingJobs ( string deviceId , string stream Id, Func < string , bool > deleteFiles )
internal void KillTranscodingJobs ( string deviceId , string playSession Id, Func < string , bool > deleteFiles )
{
{
if ( string . IsNullOrEmpty ( deviceId ) )
if ( string . IsNullOrEmpty ( deviceId ) )
{
{
@ -338,7 +338,7 @@ namespace MediaBrowser.Api
{
{
if ( string . Equals ( deviceId , j . DeviceId , StringComparison . OrdinalIgnoreCase ) )
if ( string . Equals ( deviceId , j . DeviceId , StringComparison . OrdinalIgnoreCase ) )
{
{
return string . IsNullOrWhiteSpace ( streamId) | | string . Equals ( streamId , j . Stream Id, StringComparison . OrdinalIgnoreCase ) ;
return string . IsNullOrWhiteSpace ( playSessionId) | | string . Equals ( playSessionId , j . PlaySession Id, StringComparison . OrdinalIgnoreCase ) ;
}
}
return false ;
return false ;
@ -539,10 +539,10 @@ namespace MediaBrowser.Api
public class TranscodingJob
public class TranscodingJob
{
{
/// <summary>
/// <summary>
/// Gets or sets the stream identifier.
/// Gets or sets the play session identifier.
/// </summary>
/// </summary>
/// <value>The stream identifier.</value>
/// <value>The play session identifier.</value>
public string Stream Id { get ; set ; }
public string PlaySession Id { get ; set ; }
/// <summary>
/// <summary>
/// Gets or sets the path.
/// Gets or sets the path.
/// </summary>
/// </summary>