-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG]: The video is still playing after the component is unmounted #3522
Comments
Hey @chenqi777, Unfortunately I can't access iOS 15 - cloud you check if this patch will work for you ? (with 6.0.0-beta.5) diff --git a/node_modules/react-native-video/ios/Video/RCTVideo.swift b/node_modules/react-native-video/ios/Video/RCTVideo.swift
index 70ae6e8..1b1283e 100644
--- a/ios/Video/RCTVideo.swift
+++ b/ios/Video/RCTVideo.swift
@@ -201,6 +201,7 @@ class RCTVideo: UIView, RCTVideoPlayerViewControllerDelegate, RCTPlayerObserverH
self.removePlayerLayer()
_pip = nil
_playerObserver.clearPlayer()
+ _player = nil
}
// MARK: - App lifecycle handlers |
Hi @KrzysztofMoch, thanks for your help. |
Experiencing same issue on iOS 15.x. Reproduced on 6.0.0-alpha.11. On ios 16.x and higher works good. |
same |
same here |
are you able to reproduce the issue with the emulator and the sample ? |
Same here, it works fine on iOS 16.x and 17.x, but it has issues on iOS 15. Do you have any solutions to address it? |
can confirm its broken on iOS 15 with v6.2.0. I'm not using new architecture. |
This is the only thing that gives me headache with this library. you continue hearing sounds from components that have been unmounted. 😭 |
Same issue here and I'm on android, any updates? |
I also see the issue on iOS 17.2 (sim) but not on Android. |
any update on this. |
This issue is stale because it has been open for 30 days with no activity. If there won't be any activity in the next 14 days, this issue will be closed automatically. |
easy fix is to use an |
Version
v6 (Beta)
What platforms are you having the problem on?
iOS
Architecture
New architecture with interop layer
What happened?
The component is still playing after it is unmounted. It will appear in iOS 15, but there is no problem in iOS17. I can only manually call the pause() method to pause the playback when the component is unmounted. Both versions 5.2.1 and 6.0.0-beta.5 This problem exists.
Reproduction
This person also encountered this problem https://github.com/react-native-video/react-native-video/issues/3510
The text was updated successfully, but these errors were encountered: