提交 bd346d77 authored 作者: kongdywang's avatar kongdywang

fix pip bug

上级 2711c048
......@@ -729,16 +729,16 @@ BOOL volatile isStop = false;
} else {
dispatch_async(dispatch_get_main_queue(), ^{
if ([UIApplication sharedApplication].applicationState == UIApplicationStateActive) {
[self->_txVodPlayer resume];
[player exitPictureInPicture];
}
[player removeVideoWidget];
[self->_txPipView removeFromSuperview];
self->_txPipView = nil;
if (self.delegate && [self.delegate respondsToSelector:@selector(onPlayerPipStateDidStop)]) {
[self.delegate onPlayerPipStateDidStop];
}
});
}
if (self.delegate && [self.delegate respondsToSelector:@selector(onPlayerPipStateDidStop)]) {
[self.delegate onPlayerPipStateDidStop];
}
}
if (pipState == TX_VOD_PLAYER_PIP_STATE_RESTORE_UI) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论