Skip to content

Commit 4c899d8

Browse files
authored
Merge pull request #6 from msitarzewski/feat/e2e-recording-test
feat: rename session buttons to broadcast language
2 parents 0676775 + c5fccdd commit 4c899d8

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

web/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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 -->

web/js/main.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff 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();

0 commit comments

Comments
 (0)