Commit de39d47b authored by Felix Paul Kühne's avatar Felix Paul Kühne

mini playback: fix loss of video

parent 940dfc3e
......@@ -585,17 +585,13 @@
if ([_actualVideoOutputView superview] != nil)
[_actualVideoOutputView removeFromSuperview];
_mediaPlayer.currentVideoTrackIndex = 0;
_actualVideoOutputView.frame = (CGRect){CGPointZero, videoOutputView.frame.size};
[_actualVideoOutputView layoutSubviews];
[_actualVideoOutputView updateConstraints];
[videoOutputView addSubview:_actualVideoOutputView];
} else {
} else
[_actualVideoOutputView removeFromSuperview];
if (_mediaPlayer.audioTrackIndexes.count > 0)
_mediaPlayer.currentVideoTrackIndex = -1;
}
_videoOutputViewWrapper = videoOutputView;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment