Skip to content

Commit

Permalink
视频流调整
Browse files Browse the repository at this point in the history
  • Loading branch information
Loren-Wang committed Sep 27, 2024
1 parent 21d7bd9 commit 1db3de9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/containers/all-streams/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -249,12 +249,10 @@ const GridListShow = observer(({ streamList, columnRowCount = 2, orientationUpTo
streamList.forEach((item,index)=>{
if(index < startIndex || index >= endIndex){
visibleStreams.delete(item.stream.streamUuid);
}else{
visibleStreams.set(item.stream.streamUuid, item.stream);
}
})
//显示当前的
currentPageShowStreamList.forEach((item) => {
visibleStreams.set(item.stream.streamUuid, item.stream);
})
subscribeMass(visibleStreams);
}
useEffect(resetShowList, [currentPage, streamList, isLandscape, orientationUpToDown])
Expand Down

0 comments on commit 1db3de9

Please sign in to comment.