flutter-webrtc-demo icon indicating copy to clipboard operation
flutter-webrtc-demo copied to clipboard

No audio when screen sharing

Open dcdj99 opened this issue 3 years ago • 1 comments

using the latest plugin and flutter/dart version.

testing on android sdk 30

i have implemented foreground service for the screen share, but there is still no audio. do i need to implement audio in the foreground service? if so, how?

dcdj99 avatar Aug 13 '21 19:08 dcdj99

You can create another MediaStream by call getUserMedia({'audio': true, 'video': false}) and get AudioTrack from it. After that, add the track into main stream before.

But, on iPad you will facing an issue, some time you will receive logs about can not start record screen from RelayKit after at least one time successfully. That so weird!.

anhlevfx avatar Dec 11 '21 04:12 anhlevfx