feat(1080p): pass new-style constraints to createLocalTracks (#2087)
The lib will accept new style constraints and use those to capture audio/video. By defining the constraints in config, there is greater flexibility for defining and changing constraints.
This commit is contained in:
@@ -42,7 +42,7 @@ export const JITSI_CONFERENCE_URL_KEY = Symbol('url');
|
||||
* @type {object}
|
||||
*/
|
||||
export const VIDEO_QUALITY_LEVELS = {
|
||||
HIGH: 720,
|
||||
HIGH: 1080,
|
||||
STANDARD: 360,
|
||||
LOW: 180
|
||||
};
|
||||
|
||||
@@ -45,6 +45,7 @@ export function createLocalTracksF(
|
||||
}
|
||||
|
||||
const {
|
||||
constraints,
|
||||
firefox_fake_device, // eslint-disable-line camelcase
|
||||
resolution
|
||||
} = store.getState()['features/base/config'];
|
||||
@@ -53,6 +54,7 @@ export function createLocalTracksF(
|
||||
JitsiMeetJS.createLocalTracks(
|
||||
{
|
||||
cameraDeviceId,
|
||||
constraints,
|
||||
desktopSharingExtensionExternalInstallation:
|
||||
options.desktopSharingExtensionExternalInstallation,
|
||||
desktopSharingSources: options.desktopSharingSources,
|
||||
|
||||
Reference in New Issue
Block a user