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:
virtuacoplenny
2017-10-31 17:08:07 -07:00
committed by bbaldino
parent 92dbdade39
commit 2d9ce2486e
3 changed files with 19 additions and 1 deletions
+1 -1
View File
@@ -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
};
+2
View File
@@ -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,