mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-07-24 22:48:56 +02:00
play to fix
This commit is contained in:
parent
df7eb126ad
commit
5ce3ed2fb4
|
@ -294,12 +294,15 @@ namespace MediaBrowser.Dlna.PlayTo
|
||||||
|
|
||||||
await Task.Delay(50).ConfigureAwait(false);
|
await Task.Delay(50).ConfigureAwait(false);
|
||||||
|
|
||||||
// If it's already in a playing state, this will throw an error
|
try
|
||||||
// TODO: What if state is transitioning?
|
|
||||||
if (TransportState != TRANSPORTSTATE.PLAYING)
|
|
||||||
{
|
{
|
||||||
await SetPlay().ConfigureAwait(false);
|
await SetPlay().ConfigureAwait(false);
|
||||||
}
|
}
|
||||||
|
catch
|
||||||
|
{
|
||||||
|
// Some devices will throw an error if you tell it to play when it's already playing
|
||||||
|
// Others won't
|
||||||
|
}
|
||||||
|
|
||||||
RestartTimer();
|
RestartTimer();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue