Quantcast
Channel: Active questions tagged youtube-api - Stack Overflow
Viewing all articles
Browse latest Browse all 3831

YouTube volume is very low when played during a WebRTC session

$
0
0

I am working on an iOS app with WebRTC. During the chat, volume is fine. But if I play an embedded youtube video through WKYTPlayerView, volume of the video is very low. If I disconnect the chat, video volume becomes normal again.

I have tried several things and I have been looking at this issue for few days. Here is how I am setting the category for audio session;

NSError *error = nil;[[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategoryPlayAndRecord                                 withOptions: AVAudioSessionCategoryOptionMixWithOthers | AVAudioSessionCategoryOptionDefaultToSpeaker                                       error: &error];if (error != nil) {    NSLog(@"Problem setting AVAudioSession to mix with others");}

Any help is very much appreciated.


Viewing all articles
Browse latest Browse all 3831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>