This commit is contained in:
parent
182bd83ff3
commit
2dac39f63c
|
|
@ -371,7 +371,7 @@ const Meeting: React.FC = () => {
|
|||
})
|
||||
setChatList((newChatList: any) => [...newChatList, {
|
||||
uid: state.uid,
|
||||
userName: state.userName,
|
||||
userName: user.userName,
|
||||
message: textMsg,
|
||||
}])
|
||||
setTextMsg('')
|
||||
|
|
|
|||
|
|
@ -129,16 +129,6 @@ const agora = {
|
|||
},
|
||||
// 更新频道信息
|
||||
updateChannelMediaOptions: (bool: boolean) => {
|
||||
rtcEngine.updateChannelMediaOptions({
|
||||
channelProfile: ChannelProfileType.ChannelProfileLiveBroadcasting, //设置频道场景为直播场景
|
||||
clientRoleType: ClientRoleType.ClientRoleBroadcaster, //设置用户角色为主播;如果要将用户角色设置为观众,保持默认值即可
|
||||
publishMicrophoneTrack: true, //发布麦克风采集的音频
|
||||
publishCameraTrack: true, //发布摄像头采集的视频
|
||||
publishScreenTrack: true, //设置是否发布屏幕采集的视频
|
||||
autoSubscribeAudio: true, //自动订阅所有音频流
|
||||
autoSubscribeVideo: true, //自动订阅所有视频流
|
||||
})
|
||||
return
|
||||
if (bool) {
|
||||
// 摄像头
|
||||
rtcEngine.updateChannelMediaOptions({
|
||||
|
|
|
|||
Loading…
Reference in New Issue