fix mediaplayer script error

This commit is contained in:
Luke Pulverenti 2016-01-27 01:06:26 -05:00
parent f688d34285
commit 74111fe9ac

View File

@ -1595,7 +1595,6 @@
state.PlayState.PlayMethod = self.streamInfo.playMethod; state.PlayState.PlayMethod = self.streamInfo.playMethod;
state.PlayState.LiveStreamId = mediaSource.LiveStreamId;
state.PlayState.PlaySessionId = getParameterByName('PlaySessionId', currentSrc); state.PlayState.PlaySessionId = getParameterByName('PlaySessionId', currentSrc);
} }
} }
@ -1603,6 +1602,7 @@
if (mediaSource) { if (mediaSource) {
state.PlayState.MediaSourceId = mediaSource.Id; state.PlayState.MediaSourceId = mediaSource.Id;
state.PlayState.LiveStreamId = mediaSource.LiveStreamId;
state.NowPlayingItem = { state.NowPlayingItem = {
RunTimeTicks: mediaSource.RunTimeTicks RunTimeTicks: mediaSource.RunTimeTicks