set the ad volume to 0 when the player is muted on iOS

This commit is contained in:
Francesco Benigno
2023-03-28 13:14:48 +02:00
parent edf7eee287
commit 9519c7bae7
2 changed files with 9 additions and 0 deletions

View File

@@ -496,6 +496,11 @@ class RCTVideo: UIView, RCTVideoPlayerViewControllerDelegate, RCTPlayerObserverH
applyModifiers()
}
@objc
func isMuted() -> Bool {
return _muted
}
@objc
func setMuted(_ muted:Bool) {
_muted = muted