This commit is contained in:
parent
fa309a9985
commit
d397b27d49
|
|
@ -240,7 +240,6 @@ export const agora = {
|
||||||
},
|
},
|
||||||
// 所有用户加入的第二个房间
|
// 所有用户加入的第二个房间
|
||||||
allJoinChannelEx: async (bool: boolean) => {
|
allJoinChannelEx: async (bool: boolean) => {
|
||||||
await agora.startCameraCapture()
|
|
||||||
await rtcEngine.joinChannelEx(
|
await rtcEngine.joinChannelEx(
|
||||||
option.tokenA,
|
option.tokenA,
|
||||||
{ channelId: option.channelId + 'a', localUid: Number('1' + option.screenShareId) },
|
{ channelId: option.channelId + 'a', localUid: Number('1' + option.screenShareId) },
|
||||||
|
|
@ -254,6 +253,7 @@ export const agora = {
|
||||||
updateChannelMediaOptionsEx: async (bool: boolean) => {
|
updateChannelMediaOptionsEx: async (bool: boolean) => {
|
||||||
let obj;
|
let obj;
|
||||||
if (bool) {
|
if (bool) {
|
||||||
|
await agora.startCameraCapture()
|
||||||
obj = {
|
obj = {
|
||||||
clientRoleType: ClientRoleType.ClientRoleBroadcaster, //用户角色 ClientRoleBroadcaster 主播 ClientRoleAudience 观众
|
clientRoleType: ClientRoleType.ClientRoleBroadcaster, //用户角色 ClientRoleBroadcaster 主播 ClientRoleAudience 观众
|
||||||
autoSubscribeAudio: false,//设置是否自动订阅所有音频流
|
autoSubscribeAudio: false,//设置是否自动订阅所有音频流
|
||||||
|
|
@ -263,6 +263,7 @@ export const agora = {
|
||||||
publishScreenTrack: false,//设置是否发布屏幕采集的视频
|
publishScreenTrack: false,//设置是否发布屏幕采集的视频
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
await agora.stopCameraCapture();
|
||||||
obj = {
|
obj = {
|
||||||
clientRoleType: ClientRoleType.ClientRoleAudience, //用户角色 ClientRoleBroadcaster 主播 ClientRoleAudience 观众
|
clientRoleType: ClientRoleType.ClientRoleAudience, //用户角色 ClientRoleBroadcaster 主播 ClientRoleAudience 观众
|
||||||
autoSubscribeAudio: false,//设置是否自动订阅所有音频流
|
autoSubscribeAudio: false,//设置是否自动订阅所有音频流
|
||||||
|
|
@ -276,7 +277,6 @@ export const agora = {
|
||||||
},
|
},
|
||||||
// 退出第二个房间
|
// 退出第二个房间
|
||||||
allLeaveChannelEx: async () => {
|
allLeaveChannelEx: async () => {
|
||||||
await agora.stopCameraCapture();
|
|
||||||
await rtcEngine.leaveChannelEx({ channelId: option.channelId + 'a', localUid: Number('1' + option.screenShareId) })
|
await rtcEngine.leaveChannelEx({ channelId: option.channelId + 'a', localUid: Number('1' + option.screenShareId) })
|
||||||
},
|
},
|
||||||
// ai降噪
|
// ai降噪
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue