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

fix pip bug

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