This commit is contained in:
parent
5bdb6500eb
commit
7ad3970e4e
|
|
@ -142,12 +142,12 @@ const agora = {
|
||||||
// 加入频道
|
// 加入频道
|
||||||
joinChannel: () => {
|
joinChannel: () => {
|
||||||
rtcEngine.joinChannel(option.token, option.channelId, option.uid, {
|
rtcEngine.joinChannel(option.token, option.channelId, option.uid, {
|
||||||
autoSubscribeAudio: true,
|
autoSubscribeAudio: true,//设置是否自动订阅所有音频流
|
||||||
autoSubscribeVideo: true,
|
autoSubscribeVideo: true,//设置是否自动订阅所有视频流
|
||||||
publishMicrophoneTrack: true,
|
publishMicrophoneTrack: true,//设置是否发布麦克风采集到的音频
|
||||||
publishCameraTrack: true,
|
publishCameraTrack: true,//设置是否发布摄像头采集的视频
|
||||||
clientRoleType: ClientRoleType.ClientRoleBroadcaster,
|
clientRoleType: ClientRoleType.ClientRoleBroadcaster, //用户角色 ClientRoleBroadcaster 主播 ClientRoleAudience 观众
|
||||||
publishScreenTrack: false,
|
publishScreenTrack: false,//设置是否发布屏幕采集的视频
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 共享屏幕单独用户
|
// 共享屏幕单独用户
|
||||||
|
|
@ -157,12 +157,12 @@ const agora = {
|
||||||
option.token,
|
option.token,
|
||||||
{ channelId: option.channelId, localUid: Number(uid) },
|
{ channelId: option.channelId, localUid: Number(uid) },
|
||||||
{
|
{
|
||||||
autoSubscribeAudio: false,
|
autoSubscribeAudio: false,//设置是否自动订阅所有音频流
|
||||||
autoSubscribeVideo: false,
|
autoSubscribeVideo: false,//设置是否自动订阅所有视频流
|
||||||
publishMicrophoneTrack: false,
|
publishMicrophoneTrack: false,//设置是否发布麦克风采集到的音频
|
||||||
publishCameraTrack: false,
|
publishCameraTrack: false,//设置是否发布摄像头采集的视频
|
||||||
clientRoleType: ClientRoleType.ClientRoleBroadcaster,
|
clientRoleType: ClientRoleType.ClientRoleBroadcaster,//用户角色 ClientRoleBroadcaster 主播 ClientRoleAudience 观众
|
||||||
publishScreenTrack: true,
|
publishScreenTrack: true,//设置是否发布屏幕采集的视频
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue