Merge branch 'master' of https://github.com/MediaBrowser/MediaBrowser
This commit is contained in:
commit
de24402277
|
@ -167,6 +167,10 @@ namespace MediaBrowser.Dlna.PlayTo
|
|||
if (_currentItem == null || _device.IsStopped)
|
||||
return;
|
||||
|
||||
var playlistItem = Playlist.FirstOrDefault(p => p.PlayState == 1);
|
||||
|
||||
if (playlistItem != null)
|
||||
{
|
||||
if (!_playbackStarted)
|
||||
{
|
||||
await _sessionManager.OnPlaybackStart(new PlaybackInfo
|
||||
|
@ -174,7 +178,10 @@ namespace MediaBrowser.Dlna.PlayTo
|
|||
Item = _currentItem,
|
||||
SessionId = _session.Id,
|
||||
CanSeek = true,
|
||||
QueueableMediaTypes = new List<string> { _currentItem.MediaType }
|
||||
QueueableMediaTypes = new List<string> { _currentItem.MediaType },
|
||||
MediaSourceId = playlistItem.MediaSourceId,
|
||||
AudioStreamIndex = playlistItem.AudioStreamIndex,
|
||||
SubtitleStreamIndex = playlistItem.SubtitleStreamIndex
|
||||
|
||||
}).ConfigureAwait(false);
|
||||
|
||||
|
@ -182,10 +189,6 @@ namespace MediaBrowser.Dlna.PlayTo
|
|||
}
|
||||
|
||||
if ((_device.IsPlaying || _device.IsPaused))
|
||||
{
|
||||
var playlistItem = Playlist.FirstOrDefault(p => p.PlayState == 1);
|
||||
|
||||
if (playlistItem != null)
|
||||
{
|
||||
var ticks = _device.Position.Ticks;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user