move usage reporter to server project

This commit is contained in:
Luke Pulverenti
2014-09-06 16:09:35 -04:00
parent eb1ade477d
commit 234dba2d9a
12 changed files with 25 additions and 27 deletions

View File

@@ -775,11 +775,6 @@ namespace MediaBrowser.Api.Playback
return "copy";
}
protected virtual bool SupportsThrottling
{
get { return false; }
}
/// <summary>
/// Gets the input argument.
/// </summary>
@@ -788,7 +783,7 @@ namespace MediaBrowser.Api.Playback
/// <returns>System.String.</returns>
protected string GetInputArgument(string transcodingJobId, StreamState state)
{
if (SupportsThrottling && state.InputProtocol == MediaProtocol.File &&
if (state.InputProtocol == MediaProtocol.File &&
state.RunTimeTicks.HasValue &&
state.VideoType == VideoType.VideoFile &&
!string.Equals(state.OutputVideoCodec, "copy", StringComparison.OrdinalIgnoreCase))