diff --git a/apps/media/src/mediasoup/config.ts b/apps/media/src/mediasoup/config.ts index 0d27a8f5..44b50e22 100644 --- a/apps/media/src/mediasoup/config.ts +++ b/apps/media/src/mediasoup/config.ts @@ -29,15 +29,6 @@ export class MediasoupConfig { useinbandfec: 1, }, }, - { - kind: 'video', - mimeType: 'video/H264', - clockRate: 90000, - parameters: { - 'packetization-mode': 1, - 'profile-level-id': '42e01f', - }, - }, { kind: 'video', mimeType: 'video/VP8', diff --git a/apps/web/src/utils/stream.ts b/apps/web/src/utils/stream.ts index 948f743e..460f31e0 100644 --- a/apps/web/src/utils/stream.ts +++ b/apps/web/src/utils/stream.ts @@ -6,43 +6,21 @@ const DEFAULT_AUDIO_CONSTRAINTS: MediaTrackConstraints = { autoGainControl: true, }; -const DEFAULT_VIDEO_CONSTRAINTS: MediaTrackConstraints = { - width: { ideal: 1280, min: 640, max: 1920 }, - height: { ideal: 720, min: 360, max: 1080 }, - frameRate: { max: 30, ideal: 15, min: 15 }, - aspectRatio: { ideal: 16 / 9 }, -}; - -const DEFAULT_SCREEN_CONSTRAINTS: MediaTrackConstraints = { - width: { max: 1920, ideal: 1280 }, - height: { max: 1080, ideal: 720 }, - frameRate: { max: 30, ideal: 15 }, -}; - const getCameraStream = async (options: MediaTrackConstraints = {}) => { return navigator.mediaDevices.getUserMedia({ - video: { - ...DEFAULT_VIDEO_CONSTRAINTS, - ...options, - }, + video: { ...options }, }); }; const getMicStream = async (options: MediaTrackConstraints = {}) => { return navigator.mediaDevices.getUserMedia({ - audio: { - ...DEFAULT_AUDIO_CONSTRAINTS, - ...options, - }, + audio: { ...DEFAULT_AUDIO_CONSTRAINTS, ...options }, }); }; const getScreenStream = async (options: MediaTrackConstraints = {}) => { return navigator.mediaDevices.getDisplayMedia({ - video: { - ...DEFAULT_SCREEN_CONSTRAINTS, - ...options, - }, + video: { ...options }, }); };