File tree Expand file tree Collapse file tree 3 files changed +13
-3
lines changed
client/web/src/plugin/component
server/plugins/com.msgbyte.livekit/web/plugins/com.msgbyte.livekit/src Expand file tree Collapse file tree 3 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -77,3 +77,4 @@ export {
77
77
} from '@/components/JumpToButton' ;
78
78
export { NoData } from '@/components/NoData' ;
79
79
export { NotFound } from '@/components/NotFound' ;
80
+ export { withKeepAliveOverlay } from '@/components/KeepAliveOverlay/withKeepAliveOverlay' ;
Original file line number Diff line number Diff line change 1
1
import { showErrorToasts , useEvent } from '@capital/common' ;
2
+ import { withKeepAliveOverlay } from '@capital/component' ;
2
3
import React , { useState } from 'react' ;
3
4
import type { LocalUserChoices } from '@livekit/components-react' ;
4
5
import { PreJoinView } from './lib/PreJoinView' ;
@@ -10,7 +11,7 @@ interface LivekitViewProps {
10
11
roomName : string ;
11
12
url : string ;
12
13
}
13
- export const LivekitView : React . FC < LivekitViewProps > = React . memo ( ( props ) => {
14
+ const _LivekitView : React . FC < LivekitViewProps > = React . memo ( ( props ) => {
14
15
const [ preJoinChoices , setPreJoinChoices ] = useState <
15
16
LocalUserChoices | undefined
16
17
> ( undefined ) ;
@@ -54,4 +55,8 @@ export const LivekitView: React.FC<LivekitViewProps> = React.memo((props) => {
54
55
</ LivekitContainer >
55
56
) ;
56
57
} ) ;
57
- LivekitView . displayName = 'LivekitView' ;
58
+ _LivekitView . displayName = 'LivekitView' ;
59
+
60
+ export const LivekitView = withKeepAliveOverlay ( _LivekitView , {
61
+ cacheId : ( props ) => props . url ,
62
+ } ) ;
Original file line number Diff line number Diff line change @@ -10,7 +10,11 @@ export const LivekitGroupPanel: React.FC = React.memo(() => {
10
10
11
11
return (
12
12
< GroupPanelContainer groupId = { groupId } panelId = { panelId } >
13
- < LivekitView roomName = { roomName } url = { url } />
13
+ < LivekitView
14
+ style = { { width : '100%' , height : '100%' } }
15
+ roomName = { roomName }
16
+ url = { url }
17
+ />
14
18
</ GroupPanelContainer >
15
19
) ;
16
20
} ) ;
You can’t perform that action at this time.
0 commit comments