mirror of
https://github.com/vector-im/element-call.git
synced 2026-08-05 19:59:20 +00:00
revert h264 specific resolutions
This commit is contained in:
@@ -11,20 +11,10 @@ import {
|
|||||||
type RoomOptions,
|
type RoomOptions,
|
||||||
ScreenSharePresets,
|
ScreenSharePresets,
|
||||||
type TrackPublishDefaults,
|
type TrackPublishDefaults,
|
||||||
VideoPreset,
|
type VideoPreset,
|
||||||
VideoPresets,
|
VideoPresets,
|
||||||
} from "livekit-client";
|
} from "livekit-client";
|
||||||
|
|
||||||
const VideoPresetsH264 = {
|
|
||||||
h144: new VideoPreset(256, 144, 155_000, 20),
|
|
||||||
h240: new VideoPreset(480, 234, 160_000, 20),
|
|
||||||
h176: new VideoPreset(320, 176, 160_000, 20),
|
|
||||||
h288: new VideoPreset(382, 288, 180_000, 20),
|
|
||||||
// h360: VideoPresets.h360,
|
|
||||||
h360: new VideoPreset(640, 360, 450_000, 20),
|
|
||||||
h540: new VideoPreset(960, 540, 800_000, 20),
|
|
||||||
} as const;
|
|
||||||
|
|
||||||
const defaultLiveKitPublishOptions: TrackPublishDefaults = {
|
const defaultLiveKitPublishOptions: TrackPublishDefaults = {
|
||||||
audioPreset: AudioPresets.music,
|
audioPreset: AudioPresets.music,
|
||||||
dtx: true,
|
dtx: true,
|
||||||
@@ -33,15 +23,12 @@ const defaultLiveKitPublishOptions: TrackPublishDefaults = {
|
|||||||
red: false,
|
red: false,
|
||||||
forceStereo: false,
|
forceStereo: false,
|
||||||
simulcast: true,
|
simulcast: true,
|
||||||
videoSimulcastLayers: [
|
videoSimulcastLayers: [VideoPresets.h180, VideoPresets.h360] as VideoPreset[],
|
||||||
VideoPresetsH264.h144,
|
|
||||||
VideoPresets.h360,
|
|
||||||
] as VideoPreset[],
|
|
||||||
screenShareEncoding: ScreenSharePresets.h1080fps30.encoding,
|
screenShareEncoding: ScreenSharePresets.h1080fps30.encoding,
|
||||||
stopMicTrackOnMute: false,
|
stopMicTrackOnMute: false,
|
||||||
videoCodec: "h264",
|
videoCodec: "h264",
|
||||||
videoEncoding: VideoPresets.h720.encoding,
|
videoEncoding: VideoPresets.h720.encoding,
|
||||||
backupCodec: { codec: "h264", encoding: VideoPresets.h720.encoding },
|
backupCodec: { codec: "vp8", encoding: VideoPresets.h720.encoding },
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
export const defaultLiveKitOptions: RoomOptions = {
|
export const defaultLiveKitOptions: RoomOptions = {
|
||||||
|
|||||||
Reference in New Issue
Block a user