Skip to content

Commit

Permalink
fix: destroy mediaplayer when pop vc
Browse files Browse the repository at this point in the history
  • Loading branch information
tamworth committed Oct 29, 2024
1 parent 6043cb9 commit 3e65ab4
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,10 @@ class TransparentRenderViewController: BaseViewController {
setupLocalAlphaCavans()
}

override func viewDidDisappear(_ animated: Bool) {

override func viewWillDisappear(_ animated: Bool) {
super.viewWillDisappear(animated)
agoraKit.destroyMediaPlayer(mediaPlayer)
agoraKit.leaveChannel()
agoraKit.disableVideo()
agoraKit.stopPreview()
Expand Down

0 comments on commit 3e65ab4

Please sign in to comment.