录制视频
This commit is contained in:
parent
cb6a89ac9f
commit
18e9e1bbb0
|
|
@ -260,7 +260,7 @@ const Meeting: React.FC = () => {
|
|||
footerListTemplate[itemIndex][rowIndex].title = '录制中'
|
||||
footerListTemplate[itemIndex][rowIndex].active = true
|
||||
setFooterList(footerListTemplate)
|
||||
agora.startRecording()
|
||||
agora.startRecording(Number(currentVideoId))
|
||||
}
|
||||
break;
|
||||
case '录制中':
|
||||
|
|
@ -422,7 +422,7 @@ const Meeting: React.FC = () => {
|
|||
<div className={`${styles.meetingContentSwiper} drag`}>
|
||||
{roomUserList.map((item: any, index: number) =>
|
||||
<div
|
||||
className={`${styles.meetingContentSwiperCard} ${user.account === currentVideoId ? styles.active : ''}`}
|
||||
className={`${styles.meetingContentSwiperCard} ${item.account === currentVideoId ? styles.active : ''}`}
|
||||
key={index}
|
||||
onClick={() => {
|
||||
setCurrentVideoId(item.account)
|
||||
|
|
|
|||
|
|
@ -205,10 +205,10 @@ const agora = {
|
|||
iMediaRecorder = ""
|
||||
},
|
||||
// 开始录制音视频
|
||||
startRecording: () => {
|
||||
startRecording: (uid:number) => {
|
||||
iMediaRecorder = rtcEngine.createMediaRecorder({
|
||||
channelId: option.channelId,
|
||||
uid: 123,
|
||||
uid,
|
||||
})
|
||||
iMediaRecorder.setMediaRecorderObserver({
|
||||
// 录制状态发生改变回调。
|
||||
|
|
|
|||
Loading…
Reference in New Issue