TheWidlarzGroup / react-native-video

A <Video /> component for react-native

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add playWhileMuted property

mattapperson opened this issue · comments

On iOS there are multiple AVAudioSessionCategory options for audio when playing a video.
We only really need to care about 2 of them, so we don't need to fully expose the API.

Issue:
Currently if the sound toggle switch is muted, the videos audio is muted.

Requested feature:
set [[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategoryPlayback error:nil]; if playWhileMuted prop is set to true. default should be false.

Note about this ticket added to readme

The suggestion to add [[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategoryPlayback error:nil]; at the bottom of didFinishLaunchingWithOptions no longer seems to be working. Any ideas?

commented

+1

commented

Any momentum on this feature?

A PR was made here but needs work #403

This ticket should be closed, given the merge of #403 .

Closing since merged.