add photo album

This commit is contained in:
Luke Pulverenti
2014-08-29 00:06:30 -04:00
parent 7e636a977a
commit 18a7ddc2fa
18 changed files with 462 additions and 27 deletions

View File

@@ -670,5 +670,17 @@ namespace MediaBrowser.Api.Playback.Hls
return TranscodingJobType.Hls;
}
}
protected override string GetInputArgument(StreamState state)
{
if (state.InputProtocol == Model.MediaInfo.MediaProtocol.File &&
state.RunTimeTicks.HasValue &&
!string.Equals(state.OutputVideoCodec, "copy", StringComparison.OrdinalIgnoreCase))
{
return "http://localhost:8096/videos/" + state.Request.Id + "/stream?static=true&Throttle=true&mediaSourceId=" + state.Request.MediaSourceId;
}
return base.GetInputArgument(state);
}
}
}