Skip to content

Commit

Permalink
fix(ios): properly attach / detach child video controller (#13876)
Browse files Browse the repository at this point in the history
  • Loading branch information
hansemannn authored Jul 9, 2023
1 parent 3ef8088 commit 6195261
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions iphone/Classes/TiMediaVideoPlayerProxy.m
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,11 @@ - (void)viewWillAttach
reallyAttached = YES;
}

- (void)viewDidAttach
{
[TiApp.controller.topPresentedController addChildViewController:movie];
}

- (void)viewDidDetach
{
[self removeNotificationObserver];
Expand All @@ -175,6 +180,7 @@ - (void)viewDidDetach
[movie setPlayer:nil];
RELEASE_TO_NIL(movie);
reallyAttached = NO;
[movie removeFromParentViewController];
}

- (void)windowWillClose
Expand Down

0 comments on commit 6195261

Please sign in to comment.