owt-client-native icon indicating copy to clipboard operation
owt-client-native copied to clipboard

分流时,只有视频没有音频

Open tenchong opened this issue 4 years ago • 5 comments

分流时,只有视频没有音频,或有时,一开始有音频,然后一下后面就没有了。

tenchong avatar Oct 14 '21 06:10 tenchong

Please describe your issue in detail, with reproduce steps, your expectations and actual results. Thanks.

jianjunz avatar Oct 15 '21 05:10 jianjunz

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?

tenchong avatar Oct 18 '21 06:10 tenchong

Please check whether you iOS client received RTP packets for audio. If so, please make sure AVAudioSession is correctly configured.

jianjunz avatar Oct 19 '21 07:10 jianjunz


[[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.

tenchong avatar Oct 20 '21 10:10 tenchong

Configuration of AVAudioSession depends on your requirements, you may want to override output to speaker or default.

jianjunz avatar Oct 25 '21 15:10 jianjunz