@jellyfish-dev/ts-client-sdk
Version:
Typescript client library for Jellyfish.
34 lines (33 loc) • 938 B
JavaScript
// const TEMPORAL_LAYERS_COUNT = 2;
export const simulcastTransceiverConfig = {
direction: "sendonly",
// keep this array from low resolution to high resolution
// in other case lower resolution encoding can get
// higher max_bitrate
sendEncodings: [
{
rid: "l",
active: false,
// maxBitrate: 4_000_000,
scaleResolutionDownBy: 4.0,
// scalabilityMode: "L1T" + TEMPORAL_LAYERS_COUNT,
},
{
rid: "m",
active: false,
scaleResolutionDownBy: 2.0,
},
{
rid: "h",
active: false,
// maxBitrate: 4_000_000,
// scalabilityMode: "L1T" + TEMPORAL_LAYERS_COUNT,
},
],
};
export const defaultBitrates = { audio: 50_000, video: 2_500_000 };
export const defaultSimulcastBitrates = {
h: 2_500_000,
m: 500_000,
l: 150_000,
};