Check variable

This commit is contained in:
Dmitry Lyzo 2020-10-29 21:45:28 +03:00
parent 7774a4aa00
commit d969fc2cdb

View File

@ -2939,7 +2939,7 @@ class PlaybackManager {
state.NextMediaType = nextMediaType; state.NextMediaType = nextMediaType;
if (isServerItem(streamInfo.item)) { if (streamInfo && isServerItem(streamInfo.item)) {
if (player.supportsProgress === false && state.PlayState && !state.PlayState.PositionTicks) { if (player.supportsProgress === false && state.PlayState && !state.PlayState.PositionTicks) {
state.PlayState.PositionTicks = streamInfo.item.RunTimeTicks; state.PlayState.PositionTicks = streamInfo.item.RunTimeTicks;
} }