Add simulcast layers for the screen sharing

This commit is contained in:
Daniel Abramov 2023-07-03 11:26:43 +01:00
parent aeafdac54f
commit 81734b852c

View File

@ -15,7 +15,11 @@ const defaultLiveKitPublishOptions: TrackPublishDefaults = {
forceStereo: false,
simulcast: true,
videoSimulcastLayers: [VideoPresets.h180, VideoPresets.h216] as VideoPreset[],
screenShareEncoding: ScreenSharePresets.h1080fps15.encoding,
screenShareEncoding: ScreenSharePresets.h1080fps30.encoding,
screenShareSimulcastLayers: [
new VideoPreset(1920, 1080, 1_500_000, 5, "medium"),
ScreenSharePresets.h1080fps15,
] as VideoPreset[],
stopMicTrackOnMute: false,
videoCodec: "vp8",
videoEncoding: VideoPresets.h360.encoding,