File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,9 +30,9 @@ <h1>OpenStudio</h1>
3030
3131 <!-- Controls section -->
3232 < section id ="controls ">
33- < button id ="start-session "> Start Session </ button >
33+ < button id ="start-session "> Start Broadcast </ button >
3434 < button id ="toggle-mute " disabled > Mute</ button >
35- < button id ="end-session " disabled > End Session </ button >
35+ < button id ="end-session " disabled > End Broadcast </ button >
3636 </ section >
3737
3838 <!-- Recording Controls -->
Original file line number Diff line number Diff line change @@ -78,6 +78,12 @@ class OpenStudioApp {
7878 // Check for room ID in URL hash
7979 this . checkUrlHash ( ) ;
8080
81+ // Update CTA if joining an existing room
82+ if ( this . roomIdFromUrl ) {
83+ this . startSessionButton . textContent = 'Join Broadcast' ;
84+ this . endSessionButton . textContent = 'Leave Broadcast' ;
85+ }
86+
8187 // Auto-connect to signaling server
8288 this . initializeApp ( ) ;
8389
@@ -821,6 +827,8 @@ class OpenStudioApp {
821827 this . recordingTracksDiv . style . display = 'none' ;
822828 this . lastRecordings = null ;
823829 window . location . hash = '' ;
830+ this . startSessionButton . textContent = 'Start Broadcast' ;
831+ this . endSessionButton . textContent = 'End Broadcast' ;
824832
825833 // Reconnect to signaling
826834 this . signaling . connect ( ) ;
You can’t perform that action at this time.
0 commit comments