Skip to content
This repository has been archived by the owner on Aug 23, 2023. It is now read-only.

iOS cannot play paused audio or video after recording #46

Open
jaybowang opened this issue Dec 10, 2020 · 4 comments
Open

iOS cannot play paused audio or video after recording #46

jaybowang opened this issue Dec 10, 2020 · 4 comments

Comments

@jaybowang
Copy link

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.

[[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategoryRecord error:nil];

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

jaybowang added a commit to yuntitech/react-native-audio-record that referenced this issue Dec 10, 2020
jaybowang added a commit to yuntitech/react-native-audio-record that referenced this issue Dec 10, 2020
@thatsmimo
Copy link

This commit has fixed the issue, saved my day

@jaroslav009
Copy link

jaroslav009 commented May 20, 2021

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

@jaroslav009
Copy link

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

phattran1201 added a commit to phattran1201/react-native-audio-record that referenced this issue Jul 26, 2021
lavoiekeven pushed a commit to lavoiekeven/react-native-audio-record that referenced this issue Jul 26, 2022
@Helshr
Copy link

Helshr commented Apr 28, 2023

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants