update connect

This commit is contained in:
Luke Pulverenti
2014-10-14 00:22:17 -04:00
parent 16bc1f35ff
commit 1d70f5469f
18 changed files with 136 additions and 85 deletions
@@ -1591,7 +1591,9 @@ namespace MediaBrowser.Api.Playback
state.InputFileSize = mediaSource.Size;
state.InputBitrate = mediaSource.Bitrate;
if (item is Video)
var video = item as Video;
if (video != null)
{
state.IsInputVideo = true;
@@ -1608,6 +1610,11 @@ namespace MediaBrowser.Api.Playback
{
state.InputTimestamp = mediaSource.Timestamp.Value;
}
if (video.IsShortcut)
{
state.MediaPath = File.ReadAllText(video.Path);
}
}
state.RunTimeTicks = mediaSource.RunTimeTicks;