new MediaStreamFactory()
Methods
-
<static> createMediaStream(constraints)
-
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".
Parameters:
Name Type Description constraints
Owt.Base.StreamConstraints Returns:
Return a promise that is resolved when stream is successfully created, or rejected if one of the following error happened:
- One or more parameters cannot be satisfied.
- Specified device is busy.
- Cannot obtain necessary permission or operation is canceled by user.
- Video source is screen cast, while audio source is not.
- Audio source is screen cast, while video source is disabled.
- Type
- Promise.<MediaStream, Error>