DisplayMediaStreamConstraints - Web APIs 编辑
The DisplayMediaStreamConstraints
dictionary is used to specify whether or not to include video and/or audio tracks in the MediaStream
to be returned by getDisplayMedia()
, as well as what type of processing must be applied to the tracks. Processing information is specified using MediaTrackConstraints
objects providing options which are applied to the track after the media data is received but before it is made available on the MediaStream
.
Properties
audio
- A Boolean or
MediaTrackConstraints
value; if a Boolean, this value indicates whether or not to include an audio track in theMediaStream
returned bygetDisplayMedia()
. If aMediaTrackConstraints
object is provided here, an audio track is included in the stream, but the audio is processed to match the specified constraints after being retrieved from the hardware but before being added to theMediaStream
. The default value isfalse
. video
- If
true
(the default), the display contents are included in aMediaStreamTrack
within the stream provided bygetDisplayMedia()
. Optionally, aMediaTrackConstraints
object may be given, providing options specifying processing to be performed on the video data before adding it to the stream. A value offalse
is not permitted, and results in aTypeError
being thrown.
Specifications
Specification | Status | Comment |
---|---|---|
Screen Capture The definition of 'DisplayMediaStreamConstraints' in that specification. | Working Draft | Initial definition |
See also
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论