Skip to content

Commit b1ec36e

Browse files
authored
ref(RTC) Update options JSDoc (#2849)
* feat: Add applyConstraints method * Remove option for ljm-getting-started app compatibility * Apply review comments * Fix linter * Recreate media stream on failure and handle active effect * Merge branch 'master' into gsoc-advanced-audio-settings * fix: Resolve TS errors * Fix linter * Update options JSDoc * Update options JSDoc
1 parent bfd788b commit b1ec36e

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

modules/RTC/RTCUtils.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -562,17 +562,17 @@ class RTCUtils extends Listenable {
562562
* @param {Object} [options.desktopSharingFrameRate]
563563
* @param {Object} [options.desktopSharingFrameRate.min] - Minimum fps
564564
* @param {Object} [options.desktopSharingFrameRate.max] - Maximum fps
565-
* @param {string} [options.desktopSharingSourceDevice] The device id or
565+
* @param {string} [options.desktopSharingSourceDevice] - The device id or
566566
* label for a video input source that should be used for screensharing.
567-
* @param {Array<string>} [options.desktopSharingSources] - The types of sources ("screen", "window", etc)
567+
* @param {string[]} [options.desktopSharingSources] - The types of sources ("screen", "window", etc)
568568
* from which the user can select what to share.
569-
* @param {string} [options.cameraDeviceId] - camera device id
570-
* @param {string} [options.micDeviceId] - microphone device id
571-
* @param {string} [options.resolution] - resolution constraints
572-
* @param {Array} [options.effects] - optional effects array for the track
569+
* @param {string} [options.cameraDeviceId] - Camera device id
570+
* @param {string} [options.micDeviceId] - Microphone device id
571+
* @param {string} [options.resolution] - Resolution constraints
572+
* @param {IStreamEffect[]} [options.effects] - Optional effects array for the track
573573
* @param {ITrackConstraints} [options.constraints] - The constraints to use for
574574
* the audio and video tracks.
575-
* @returns {Promise} The promise, when successful, will return an array of
575+
* @returns {Promise<IStreamInfo[]>} The promise, when successful, will return an array of
576576
* meta data for the requested device type, which includes the stream and
577577
* track. If an error occurs, it will be deferred to the caller for
578578
* handling.

0 commit comments

Comments
 (0)