xuyuanzhou / react-native-yz-vlcplayer

VLC Player for react-native
MIT License
152 stars 53 forks source link

如何在页面关闭时销毁播放实例? #37

Open yunuo-tech opened 5 years ago

yunuo-tech commented 5 years ago

现在安卓和 ios 多次进入播放页面后好像都有问题,会有卡死或闪退的情况。 初步判断是页面关闭后没有销毁播放实例,有具体的方法吗

cshlxm commented 5 years ago

遇到同样的问题,多次进入并返回后,程序直接闪退

cshlxm commented 5 years ago

我把最后那点注释掉 就不闪退了 `- (void)dealloc{ [self _release]; }

pragma mark - Lifecycle

//- (void)willMoveToSuperview:(UIView *)newSuperview //- (void)didMoveToSuperview

//- (void)willRemoveSubview:(UIView *)subview

// //- (void)removeFromSuperview //{ // NSLog(@"removeFromSuperview"); // [self _release]; // [super removeFromSuperview]; //}`