Skip to content
This repository was archived by the owner on Jun 28, 2024. It is now read-only.

Commit c8816c6

Browse files
Simulcast info (#54)
1 parent 645b7f1 commit c8816c6

5 files changed

Lines changed: 1085 additions & 1070 deletions

File tree

examples/use-camera-and-microphone-example/src/MainControls.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export const MainControls = () => {
6363
defaultTrackMetadata: DEFAULT_VIDEO_TRACK_METADATA,
6464
defaultSimulcastConfig: {
6565
enabled: true,
66-
active_encodings: ["l", "m", "h"],
66+
activeEncodings: ["l", "m", "h"],
6767
},
6868
},
6969
microphone: {

package-lock.json

Lines changed: 24 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
"typescript": "^4.9.5"
6363
},
6464
"dependencies": {
65-
"@jellyfish-dev/ts-client-sdk": "^0.2.0",
65+
"@jellyfish-dev/ts-client-sdk": "^0.2.1",
6666
"events": "3.3.0",
6767
"lodash.isequal": "4.5.0"
6868
},

src/stateMappers.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ const createTrack = <TrackMetadata,>(ctx: TrackContext): Track<TrackMetadata> =>
9090
simulcastConfig: ctx.simulcastConfig
9191
? {
9292
enabled: ctx.simulcastConfig.enabled,
93-
activeEncodings: [...ctx.simulcastConfig.active_encodings],
93+
activeEncodings: [...ctx.simulcastConfig.activeEncodings],
9494
}
9595
: null,
9696
});
@@ -314,7 +314,7 @@ export const addTrack =
314314
simulcastConfig: simulcastConfig
315315
? {
316316
enabled: simulcastConfig?.enabled,
317-
activeEncodings: [...simulcastConfig.active_encodings],
317+
activeEncodings: [...simulcastConfig.activeEncodings],
318318
}
319319
: null,
320320
},

0 commit comments

Comments
 (0)