This commit is contained in:
parent
edfaa9342b
commit
852a65b817
|
|
@ -71,7 +71,7 @@ const JoinSetting = forwardRef((_props: any, ref: any) => {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
const getRoomRtcToken = async (roomNum: string, callBack: Function): Promise<void> => {
|
const getRoomRtcToken = async (roomNum: string, callBack: Function): Promise<void> => {
|
||||||
Promise.all([GetRoomRtcToken(roomNum), GetRoomRtcToken(roomNum + 'a')]).then(res => {
|
Promise.all([GetRoomRtcToken(roomNum), GetRoomRtcToken(roomNum + '1')]).then(res => {
|
||||||
if (res[0].code === 200 && res[1].code === 200) {
|
if (res[0].code === 200 && res[1].code === 200) {
|
||||||
callBack({
|
callBack({
|
||||||
token: res[0].data,
|
token: res[0].data,
|
||||||
|
|
|
||||||
|
|
@ -929,7 +929,7 @@ const Meeting: React.FC = () => {
|
||||||
break;
|
break;
|
||||||
case '会议监控':
|
case '会议监控':
|
||||||
window.electron.oepnWindow({
|
window.electron.oepnWindow({
|
||||||
url: location.origin + `/#/userVideo?channelId=${state.channelId + 'a'}&token=${state.tokenA}`
|
url: location.origin + `/#/userVideo?channelId=${state.channelId + '1'}&token=${state.tokenA}`
|
||||||
})
|
})
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -74,7 +74,7 @@ const UserVideo: React.FC = () => {
|
||||||
}
|
}
|
||||||
// 获取轮训用户
|
// 获取轮训用户
|
||||||
const getPolling = async (): Promise<void> => {
|
const getPolling = async (): Promise<void> => {
|
||||||
GetPolling(getQueryParameterRegex('channelId')?.split('a')[0] as string, from.viewPeopleValue).then((res: any) => {
|
GetPolling(getQueryParameterRegex('channelId')?.split('1')[0] as string, from.viewPeopleValue).then((res: any) => {
|
||||||
if (res.code === 200) {
|
if (res.code === 200) {
|
||||||
setUserList(res.data)
|
setUserList(res.data)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -222,7 +222,7 @@ const agora = {
|
||||||
allJoinChannelEx: async () => {
|
allJoinChannelEx: async () => {
|
||||||
await rtcEngine.joinChannelEx(
|
await rtcEngine.joinChannelEx(
|
||||||
option.tokenA,
|
option.tokenA,
|
||||||
{ channelId: option.channelId + 'a', localUid: Number('1' + option.screenShareId) },
|
{ channelId: option.channelId + '1', localUid: Number('1' + option.screenShareId) },
|
||||||
{
|
{
|
||||||
autoSubscribeAudio: false,//设置是否自动订阅所有音频流
|
autoSubscribeAudio: false,//设置是否自动订阅所有音频流
|
||||||
autoSubscribeVideo: false,//设置是否自动订阅所有视频流
|
autoSubscribeVideo: false,//设置是否自动订阅所有视频流
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue