This commit is contained in:
parent
1887bb39bc
commit
2afcef025b
|
|
@ -164,6 +164,7 @@ const Meeting: React.FC = () => {
|
||||||
const [chatList, setChatList] = useState<any>([])
|
const [chatList, setChatList] = useState<any>([])
|
||||||
const [isExpand, setIsExpand] = useState(false)
|
const [isExpand, setIsExpand] = useState(false)
|
||||||
const [currentVideoId, setCurrentVideoId] = useState('')
|
const [currentVideoId, setCurrentVideoId] = useState('')
|
||||||
|
const [currentVideoUid, setCurrentVideoUid] = useState('')
|
||||||
let [currentSeconds, setCurrentSeconds] = useState(0)
|
let [currentSeconds, setCurrentSeconds] = useState(0)
|
||||||
const [currentEffective, setCurrentEffective] = useState(4)
|
const [currentEffective, setCurrentEffective] = useState(4)
|
||||||
const [networkQuality, setNetworkQuality] = useState({
|
const [networkQuality, setNetworkQuality] = useState({
|
||||||
|
|
@ -973,7 +974,7 @@ const Meeting: React.FC = () => {
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
async function setView() {
|
async function setView() {
|
||||||
let uid = currentVideoId || userInfo.uid
|
let uid = currentVideoUid
|
||||||
switch (currentLookUserStatus) {
|
switch (currentLookUserStatus) {
|
||||||
case 1:
|
case 1:
|
||||||
await agora.setupLocalVideo({
|
await agora.setupLocalVideo({
|
||||||
|
|
@ -1428,6 +1429,7 @@ const Meeting: React.FC = () => {
|
||||||
} else {
|
} else {
|
||||||
uid = userInfo.uid
|
uid = userInfo.uid
|
||||||
}
|
}
|
||||||
|
setCurrentVideoUid(uid)
|
||||||
if (currentVideoId) {
|
if (currentVideoId) {
|
||||||
await agora.destroyRendererByView(`video-source-camera-primary`)
|
await agora.destroyRendererByView(`video-source-camera-primary`)
|
||||||
await agora.destroyRendererByView(`video-source-screen`)
|
await agora.destroyRendererByView(`video-source-screen`)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue