owt-client-native
owt-client-native copied to clipboard
分流时,只有视频没有音频
分流时,只有视频没有音频,或有时,一开始有音频,然后一下后面就没有了。
Please describe your issue in detail, with reproduce steps, your expectations and actual results. Thanks.
Hello. The version 4.3.1 is used, and then IOS shunts and subscribes to the audio and video on the computer side. You can only see the video and can't hear the sound. The computer side can hear the sound and see the video with each other. IOS confluence can be normal. What is the reason?
Please check whether you iOS client received RTP packets for audio. If so, please make sure AVAudioSession is correctly configured.
[[M2MOWTManager sharedSocket] subscribe:remoteStream withOptions:nil success:^(OWTConferenceSubscription * _Nonnull subscription) { videoView.subscription = subscription; videoView.subscriptionId = videoView.subscription.subscriptionId; dispatch_async(dispatch_get_main_queue(), ^{ [remoteStream attach:videoView.remoteVideoView];
});
} failure:^(NSString * _Nonnull error) { NSLog(@"%@",error); }];
Hello, The above is the code for me to subscribe to the video, how to mark AVAudioSession is correctly configured.
Configuration of AVAudioSession depends on your requirements, you may want to override output to speaker or default.