Skip to content

Commit

Permalink
fix(FEC-12881): Inside playlist when autoContinue is true, the square…
Browse files Browse the repository at this point in the history
… up next video in the middle of the screen is briefly displayed

Hide playlist up next screen when autocontinue is true
  • Loading branch information
SivanA-Kaltura committed Feb 19, 2023
1 parent d1ff90b commit ddc0f13
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/components/playlist-next-screen/playlist-next-screen.js
Expand Up @@ -57,7 +57,13 @@ class PlaylistNextScreen extends Component {
* @returns {boolean} - component element
*/
_shouldRender(props: any): boolean {
return !!(props.playlist && props.playlist.next && props.playlist.next.sources && props.isPlaybackEnded);
return !!(
props.playlist &&
props.playlist.next &&
props.playlist.next.sources &&
props.isPlaybackEnded &&
!props.player.playlist.options.autoContinue
);
}

/**
Expand Down

0 comments on commit ddc0f13

Please sign in to comment.