Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use correct enum #2

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
@ -0,0 +1,36 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
node_modules
.pnp
.pnp.js

# testing
coverage

# next.js
.next/
out/
build
.swc/

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# local env files
.env.local
.env.development.local
.env.test.local
.env.production.local

# turbo
.turbo

# ui
dist/
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1614,7 +1614,7 @@ hello-world
const {
Stage,
StageEvents,
ConnectionState,
StageConnectionState,
} = IVSBroadcastClient;
}
```
Expand Down Expand Up @@ -1694,7 +1694,7 @@ hello-world
const {
Stage, // Reference to the Stage class
StageEvents, // Reference to the StageEvents object
ConnectionState, // Reference to the ConnectionState object
StageConnectionState, // Reference to the StageConnectionState object
} = IVSBroadcastClient; // IVS Broadcast Client object

if (!isInitializeComplete) return; // If the initialization is not complete, stop execution and return
Expand Down Expand Up @@ -1792,7 +1792,7 @@ hello-world
...

stage.on(StageEvents.STAGE_CONNECTION_STATE_CHANGED, (state) => {
setIsConnected(state === ConnectionState.CONNECTED);
setIsConnected(state === StageConnectionState.CONNECTED);

// Mutes the microphone stage stream and updates the inner text of the mic button to "Unmute Mic"
micStageStream.setMuted(true);
Expand Down Expand Up @@ -1896,7 +1896,7 @@ hello-world
const {
Stage, // Reference to the Stage class
StageEvents, // Reference to the StageEvents object
ConnectionState, // Reference to the ConnectionState object
StageConnectionState, // Reference to the StageConnectionState object
} = IVSBroadcastClient; // IVS Broadcast Client object

if (!isInitializeComplete) return; // If the initialization is not complete, stop execution and return
Expand All @@ -1920,7 +1920,7 @@ hello-world
// Event listener for stage connection state changes
stage.on(StageEvents.STAGE_CONNECTION_STATE_CHANGED, (state) => {
// Update the connection status
setIsConnected(state === ConnectionState.CONNECTED);
setIsConnected(state === StageConnectionState.CONNECTED);

// Mute the microphone stage stream and update the state for the mic button
micStageStream.setMuted(true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export const joinStage = async (
const {
Stage, // Reference to the Stage class
StageEvents, // Reference to the StageEvents object
ConnectionState, // Reference to the ConnectionState object
StageConnectionState, // Reference to the StageConnectionState object
} = IVSBroadcastClient; // IVS Broadcast Client object

if (!isInitializeComplete) return; // If the initialization is not complete, stop execution and return
Expand All @@ -114,7 +114,7 @@ export const joinStage = async (
// Event listener for stage connection state changes
stage.on(StageEvents.STAGE_CONNECTION_STATE_CHANGED, (state) => {
// Update the connection status
setIsConnected(state === ConnectionState.CONNECTED);
setIsConnected(state === StageConnectionState.CONNECTED);

// Mute the microphone stage stream and update the state for the mic button
micStageStream.setMuted(true);
Expand Down
4 changes: 2 additions & 2 deletions hello-world/client/src/app/utils/stageUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export const joinStage = async (
const {
Stage, // Reference to the Stage class
StageEvents, // Reference to the StageEvents object
ConnectionState, // Reference to the ConnectionState object
StageConnectionState, // Reference to the StageConnectionState object
} = IVSBroadcastClient; // IVS Broadcast Client object

if (!isInitializeComplete) return; // If the initialization is not complete, stop execution and return
Expand All @@ -106,7 +106,7 @@ export const joinStage = async (
// Event listener for stage connection state changes
stage.on(StageEvents.STAGE_CONNECTION_STATE_CHANGED, (state) => {
// Update the connection status
setIsConnected(state === ConnectionState.CONNECTED);
setIsConnected(state === StageConnectionState.CONNECTED);

// Mute the microphone stage stream and update the state for the mic button
micStageStream.setMuted(true);
Expand Down