@@ -31,7 +31,7 @@ export type ControlTrayProps = {
3131 children ?: ReactNode ;
3232 supportsVideo : boolean ;
3333 onVideoStreamChange ?: ( stream : MediaStream | null ) => void ;
34- hideSettings ?: boolean ;
34+ enableEditingSettings ?: boolean ;
3535} ;
3636
3737type MediaStreamButtonProps = {
@@ -55,15 +55,15 @@ const MediaStreamButton = memo(
5555 < button className = "action-button" onClick = { start } >
5656 < span className = "material-symbols-outlined" > { offIcon } </ span >
5757 </ button >
58- ) ,
58+ )
5959) ;
6060
6161function ControlTray ( {
6262 videoRef,
6363 children,
6464 onVideoStreamChange = ( ) => { } ,
6565 supportsVideo,
66- hideSettings ,
66+ enableEditingSettings ,
6767} : ControlTrayProps ) {
6868 const videoStreams = [ useWebcam ( ) , useScreenCapture ( ) ] ;
6969 const [ activeVideoStream , setActiveVideoStream ] =
@@ -86,7 +86,7 @@ function ControlTray({
8686 useEffect ( ( ) => {
8787 document . documentElement . style . setProperty (
8888 "--volume" ,
89- `${ Math . max ( 5 , Math . min ( inVolume * 200 , 8 ) ) } px` ,
89+ `${ Math . max ( 5 , Math . min ( inVolume * 200 , 8 ) ) } px`
9090 ) ;
9191 } , [ inVolume ] ) ;
9292
@@ -213,7 +213,7 @@ function ControlTray({
213213 </ div >
214214 < span className = "text-indicator" > Streaming</ span >
215215 </ div >
216- { hideSettings ? "" : < SettingsDialog /> }
216+ { enableEditingSettings ? < SettingsDialog /> : "" }
217217 </ section >
218218 ) ;
219219}
0 commit comments