when running Dropin-Player sample for iOS, I found we cannot go into dealloc method at VDLPlaybackViewController page when pressing Done button. I guess there is something cannot be released.
Let me know if it's a bug or not!
Thanks
Code: Select all
- (void)viewWillDisappear:(BOOL)animated
{
[super viewWillDisappear:animated];
if (_mediaplayer) {
@try {
[_mediaplayer removeObserver:self forKeyPath:@"time"];
[_mediaplayer removeObserver:self forKeyPath:@"remainingTime"];
}
@catch (NSException *exception) {
NSLog(@"we weren't an observer yet");
}
if (_mediaplayer.media)
[_mediaplayer stop];
if (_mediaplayer)
_mediaplayer = nil;
}
if (_idleTimer) {
[_idleTimer invalidate];
_idleTimer = nil;
}
[self.navigationController setNavigationBarHidden:NO animated:YES];
[[UIApplication sharedApplication] setStatusBarHidden:NO withAnimation:UIStatusBarAnimationFade];
}
- (void)dealloc {
NSLog("it should be called");
}
Return to “VLC for iOS, iPadOS and Apple TV”
Users browsing this forum: No registered users and 20 guests