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

Commit

Permalink
Simulcast info (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
kamil-stasiak authored Oct 31, 2023
1 parent 645b7f1 commit c8816c6
Show file tree
Hide file tree
Showing 5 changed files with 1,085 additions and 1,070 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export const MainControls = () => {
defaultTrackMetadata: DEFAULT_VIDEO_TRACK_METADATA,
defaultSimulcastConfig: {
enabled: true,
active_encodings: ["l", "m", "h"],
activeEncodings: ["l", "m", "h"],
},
},
microphone: {
Expand Down
40 changes: 24 additions & 16 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"typescript": "^4.9.5"
},
"dependencies": {
"@jellyfish-dev/ts-client-sdk": "^0.2.0",
"@jellyfish-dev/ts-client-sdk": "^0.2.1",
"events": "3.3.0",
"lodash.isequal": "4.5.0"
},
Expand Down
4 changes: 2 additions & 2 deletions src/stateMappers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ const createTrack = <TrackMetadata,>(ctx: TrackContext): Track<TrackMetadata> =>
simulcastConfig: ctx.simulcastConfig
? {
enabled: ctx.simulcastConfig.enabled,
activeEncodings: [...ctx.simulcastConfig.active_encodings],
activeEncodings: [...ctx.simulcastConfig.activeEncodings],
}
: null,
});
Expand Down Expand Up @@ -314,7 +314,7 @@ export const addTrack =
simulcastConfig: simulcastConfig
? {
enabled: simulcastConfig?.enabled,
activeEncodings: [...simulcastConfig.active_encodings],
activeEncodings: [...simulcastConfig.activeEncodings],
}
: null,
},
Expand Down
Loading

0 comments on commit c8816c6

Please sign in to comment.