Skip to content

Commit

Permalink
update nextItemInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
LukePulverenti committed Jan 30, 2017
1 parent e0ffc67 commit 08ed47c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions components/maincontroller.js
Expand Up @@ -133,6 +133,7 @@

function stop(nextMode) {

$scope.playNextItem = false;
embyActions.stop($scope);
enableTimeUpdateListener(false);

Expand Down
9 changes: 6 additions & 3 deletions helpers.js
Expand Up @@ -189,10 +189,12 @@ function getSenderReportingData($scope, reportingData) {
nowPlayingItem.LogoImageTag = item.ParentLogoImageTag;
}

var nextItemInfo = getNextPlaybackItemInfo();
if ($scope.playNextItem) {
var nextItemInfo = getNextPlaybackItemInfo();

if (nextItemInfo) {
state.NextMediaType = nextItemInfo.item.MediaType;
if (nextItemInfo) {
state.NextMediaType = nextItemInfo.item.MediaType;
}
}
}

Expand Down Expand Up @@ -225,6 +227,7 @@ function resetPlaybackScope($scope) {
$scope.canSeek = false;
$scope.canClientSeek = false;
$scope.isChangingStream = false;
$scope.playNextItem = true;

$scope.item = null;
$scope.liveStreamId = '';
Expand Down

0 comments on commit 08ed47c

Please sign in to comment.