goodatlas / react-native-audio-record

Audio record buffers for React Native (iOS and Android)
MIT License
176 stars 100 forks source link

iOS cannot play paused audio or video after recording #46

Open jaybowang opened 3 years ago

jaybowang commented 3 years ago

Steps to reproduce

  1. play a video
  2. pause the video
  3. record
  4. continue to play the video
  5. result: the video cannot be continued

I found this line might lead to this problem.

https://github.com/goodatlas/react-native-audio-record/blob/6dd4c713eeaa95c491f3c4c900b4c8912e41d885/ios/RNAudioRecord.m#L33

Respecting the previous category would solve this. I'll create a PR later.

thatsmimo commented 3 years ago

This commit has fixed the issue, saved my day

jaroslav009 commented 3 years ago

same issue "react-native-audio-record": "^0.2.2", "react-native": "0.63.4",

jaroslav009 commented 3 years ago

Found solution https://github.com/goodatlas/react-native-audio-record/blob/master/Example/App2.js it must be on class i have code in function

Helshr commented 1 year ago

<Video ... ignoreSilentSwitch={'ignore'} /> try this.