You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 25, 2024. It is now read-only.
@@ -130,7 +129,7 @@ export class MediaStreamFactory {
130
129
* @static
131
130
* @desc Create a MediaStream with given constraints. If you want to create a MediaStream for screen cast, please make sure both audio and video's source are "screen-cast".
132
131
* @memberof Owt.Base.MediaStreamFactory
133
-
* @returns {Promise<MediaStream, Error>} Return a promise that is resolved when stream is successfully created, or rejected if one of the following error happened:
132
+
* @return {Promise<MediaStream, Error>} Return a promise that is resolved when stream is successfully created, or rejected if one of the following error happened:
134
133
* - One or more parameters cannot be satisfied.
135
134
* - Specified device is busy.
136
135
* - Cannot obtain necessary permission or operation is canceled by user.
@@ -167,7 +166,7 @@ export class MediaStreamFactory {
167
166
// Check and convert constraints.
168
167
if(!constraints.audio&&!constraints.video){
169
168
returnPromise.reject(newTypeError(
170
-
'At least one of audio and video must be requested.'));
169
+
'At least one of audio and video must be requested.'));
171
170
}
172
171
constmediaConstraints=Object.create({});
173
172
if(typeofconstraints.audio==='object'&&
@@ -181,7 +180,8 @@ export class MediaStreamFactory {
* @returns {Promise<ConferenceInfo, Error>} Return a promise resolved with current conference's information if successfully join the conference. Or return a promise rejected with a newly created Owt.Error if failed to join the conference.
334
+
* @return {Promise<ConferenceInfo, Error>} Return a promise resolved with current conference's information if successfully join the conference. Or return a promise rejected with a newly created Owt.Error if failed to join the conference.
335
335
* @param {string} tokenString Token is issued by conference server(nuve).
* @param {Owt.Base.LocalStream} stream The stream to be published.
396
396
* @param {Owt.Base.PublishOptions} options Options for publication.
397
397
* @param {string[]} videoCodecs Video codec names for publishing. Valid values are 'VP8', 'VP9' and 'H264'. This parameter only valid when options.video is RTCRtpEncodingParameters. Publishing with RTCRtpEncodingParameters is an experimental feature. This parameter is subject to change.
398
-
* @returns {Promise<Publication, Error>} Returned promise will be resolved with a newly created Publication once specific stream is successfully published, or rejected with a newly created Error if stream is invalid or options cannot be satisfied. Successfully published means PeerConnection is established and server is able to process media data.
398
+
* @return {Promise<Publication, Error>} Returned promise will be resolved with a newly created Publication once specific stream is successfully published, or rejected with a newly created Error if stream is invalid or options cannot be satisfied. Successfully published means PeerConnection is established and server is able to process media data.
* @desc Subscribe a RemoteStream from conference server.
417
417
* @param {Owt.Base.RemoteStream} stream The stream to be subscribed.
418
418
* @param {Owt.Conference.SubscribeOptions} options Options for subscription.
419
-
* @returns {Promise<Subscription, Error>} Returned promise will be resolved with a newly created Subscription once specific stream is successfully subscribed, or rejected with a newly created Error if stream is invalid or options cannot be satisfied. Successfully subscribed means PeerConnection is established and server was started to send media data.
419
+
* @return {Promise<Subscription, Error>} Returned promise will be resolved with a newly created Subscription once specific stream is successfully subscribed, or rejected with a newly created Error if stream is invalid or options cannot be satisfied. Successfully subscribed means PeerConnection is established and server was started to send media data.
0 commit comments