update StreamBuilder
This commit is contained in:
parent
b7525a733c
commit
6acfee7df6
|
@ -184,6 +184,12 @@ namespace MediaBrowser.Model.Dlna
|
||||||
{
|
{
|
||||||
playlistItem.PlayMethod = PlayMethod.DirectPlay;
|
playlistItem.PlayMethod = PlayMethod.DirectPlay;
|
||||||
}
|
}
|
||||||
|
else if (item.Protocol == MediaProtocol.Http &&
|
||||||
|
directPlayMethods.Contains(PlayMethod.DirectPlay) &&
|
||||||
|
_localPlayer.CanAccessUrl(item.Path, item.RequiredHttpHeaders.Count > 0))
|
||||||
|
{
|
||||||
|
playlistItem.PlayMethod = PlayMethod.DirectPlay;
|
||||||
|
}
|
||||||
else if (directPlayMethods.Contains(PlayMethod.DirectStream))
|
else if (directPlayMethods.Contains(PlayMethod.DirectStream))
|
||||||
{
|
{
|
||||||
playlistItem.PlayMethod = PlayMethod.DirectStream;
|
playlistItem.PlayMethod = PlayMethod.DirectStream;
|
||||||
|
@ -578,10 +584,13 @@ namespace MediaBrowser.Model.Dlna
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (mediaSource.Protocol == MediaProtocol.File && _localPlayer.CanAccessFile(mediaSource.Path))
|
else if (mediaSource.Protocol == MediaProtocol.File)
|
||||||
|
{
|
||||||
|
if (_localPlayer.CanAccessFile(mediaSource.Path))
|
||||||
{
|
{
|
||||||
return PlayMethod.DirectPlay;
|
return PlayMethod.DirectPlay;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return PlayMethod.DirectStream;
|
return PlayMethod.DirectStream;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user