This commit is contained in:
parent
712b3cfed6
commit
c2d9e2cbea
|
|
@ -245,7 +245,6 @@ export const agora = {
|
||||||
await agora.updateChannelMediaOptionsEx(false)
|
await agora.updateChannelMediaOptionsEx(false)
|
||||||
},
|
},
|
||||||
updateChannelMediaOptionsEx: async (bool: boolean) => {
|
updateChannelMediaOptionsEx: async (bool: boolean) => {
|
||||||
bool ? agora.startCameraCapture() : agora.stopCameraCapture();
|
|
||||||
rtcEngine.updateChannelMediaOptionsEx({
|
rtcEngine.updateChannelMediaOptionsEx({
|
||||||
clientRoleType: bool ? ClientRoleType.ClientRoleBroadcaster : ClientRoleType.ClientRoleAudience, //用户角色 ClientRoleBroadcaster 主播 ClientRoleAudience 观众
|
clientRoleType: bool ? ClientRoleType.ClientRoleBroadcaster : ClientRoleType.ClientRoleAudience, //用户角色 ClientRoleBroadcaster 主播 ClientRoleAudience 观众
|
||||||
autoSubscribeAudio: false,//设置是否自动订阅所有音频流
|
autoSubscribeAudio: false,//设置是否自动订阅所有音频流
|
||||||
|
|
@ -273,7 +272,7 @@ export const agora = {
|
||||||
},
|
},
|
||||||
// 取消或恢复发布本地视频流
|
// 取消或恢复发布本地视频流
|
||||||
muteLocalVideoStream: async (mute: any) => {
|
muteLocalVideoStream: async (mute: any) => {
|
||||||
await rtcEngine.muteLocalVideoStream(mute)
|
// await rtcEngine.muteLocalVideoStream(mute)
|
||||||
},
|
},
|
||||||
// 摄像头采集
|
// 摄像头采集
|
||||||
startCameraCapture: async () => {
|
startCameraCapture: async () => {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue