yangjie #28

Merged
yangqiang merged 32 commits from yangjie into master 2024-10-29 15:15:48 +08:00
2 changed files with 28 additions and 19 deletions
Showing only changes of commit 9c19b41e2e - Show all commits

View File

@ -6,12 +6,14 @@ import { agora } from '@/utils/package/agora'
import { CloseOutlined, LoadingOutlined, QuestionCircleOutlined } from '@ant-design/icons';
import { storage } from '@/utils';
import path from 'path';
import { role } from '@/config/role';
let meetingUserInfo = '' as any;
const fs = require('fs').promises;
const { exec } = require('child_process');
const StupWizard = forwardRef((_props: any, ref: any) => {
useImperativeHandle(ref, () => ({
changeModal: (index: number = 0) => {
changeModal: (index: number = 0, data: any) => {
meetingUserInfo = data;
if (location.hash.indexOf('/meeting') === -1) {
agora.init()
}
@ -675,22 +677,26 @@ const AudioComponents = () => {
})
agora.setRecordingDevice(e)
}} />;
{audioDeviceManager.ecordingActive ? <div onClick={() => {
agora.stopRecordingDeviceTest()
setAudioDeviceManager({
...audioDeviceManager,
playBackActive: false,
ecordingActive: false,
})
}}></div> : <div onClick={() => {
agora.stopPlaybackDeviceTest()
agora.startRecordingDeviceTest(100)
setAudioDeviceManager({
...audioDeviceManager,
playBackActive: false,
ecordingActive: true,
})
}}></div>}
{(meetingUserInfo &&
(role.ID.includes(meetingUserInfo.roleId) || meetingUserInfo.isRoomManager) &&
meetingUserInfo.enableMicr) ||
location.hash.indexOf('/meeting') === -1
? audioDeviceManager.ecordingActive ? <div onClick={() => {
agora.stopRecordingDeviceTest()
setAudioDeviceManager({
...audioDeviceManager,
playBackActive: false,
ecordingActive: false,
})
}}></div> : <div onClick={() => {
agora.stopPlaybackDeviceTest()
agora.startRecordingDeviceTest(100)
setAudioDeviceManager({
...audioDeviceManager,
playBackActive: false,
ecordingActive: true,
})
}}></div> : null}
</div>
{audioDeviceManager.ecordingActive ? <div className={styles.audioComponentsVolume}>
<img src={ImageUrl.icon36} alt="" />

View File

@ -1426,7 +1426,10 @@ const Meeting: React.FC = () => {
})
break;
case '设置':
stupWizardRef.current.changeModal()
await getUserRoomInfo().then(async (res) => {
stupWizardRef.current.changeModal(0, res)
})
break;
case '邀请人员':
await getUserRoomInfo().then(async (res) => {