Closed Fanpei920 closed 3 years ago
Is there a way of playback the App sound at the same time with the WebView sound?
For example we use the "ReplayKit Example" and "Start Conference" example (internally using RPScreenRecorder.)
[Step one] Click "Start Conference" and join the room, then you can able to hear the remote participant.
[Step two] Launch the webview and play some video.
"ReplayKit Example"
Can hear the webview's audio and the remote participant's audio at same time.
Become unable to hear the remote participant's audio, instead of App's audio started to playback.
100%
4.3.0
14.4
I've tried to use the code below but it seems can't work.
try AVAudioSession.sharedInstance().setCategory(AVAudioSession.Category.playAndRecord, options: [.mixWithOthers]) try AVAudioSession.sharedInstance().setActive(true)
Thanks!
Self resolved!
Description
Is there a way of playback the App sound at the same time with the WebView sound?
Steps to Reproduce
For example we use the "ReplayKit Example" and "Start Conference" example (internally using RPScreenRecorder.)
[Step one] Click "Start Conference" and join the room, then you can able to hear the remote participant.
[Step two] Launch the webview and play some video.
Code
"ReplayKit Example"
Expected Behavior
Can hear the webview's audio and the remote participant's audio at same time.
Actual Behavior
Become unable to hear the remote participant's audio, instead of App's audio started to playback.
Reproduces How Often
100%
Video iOS SDK
4.3.0
iOS Device
14.4
Discussion
I've tried to use the code below but it seems can't work.
Thanks!