Commit 846398a5 authored by Felix Paul Kühne's avatar Felix Paul Kühne

ATV fullscreen playback: prevent corner-case which was lead to a black screen instead of video

(cherry picked from commit a7af6cd1)
parent 9e1b1b7b
......@@ -684,6 +684,11 @@ currentMediaHasTrackToChooseFrom:(BOOL)currentMediaHasTrackToChooseFrom
[self updateActivityIndicatorForState:currentState];
if (controller.isPlaying) {
// we sometimes don't set the vout correctly if playback stops and restarts without dismising and redisplaying the VC
// hence, manually reset the vout container here if it doesn't have sufficient children
if (self.movieView.subviews.count < 2) {
controller.videoOutputView = self.movieView;
[self hidePlaybackControlsIfNeededAfterDelay];
} else {
[self showPlaybackControlsIfNeededForUserInteraction];
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment