DesktopCapturerSource 对象

  • id String - 一个 window 或 screen 的标识符,在调用 [navigator. webkitGetUserMedia] 时可作为 chromeMediaSourceId 约束,。 The format of the identifier will be window:XX:YY or screen:ZZ:0. XX is the windowID/handle. YY is 1 for the current process, and 0 for all others. ZZ is a sequential number that represents the screen, and it does not equal to the index in the source’s name.
  • name字符串—screen源将被命名为 Entire ScreenScreen<index> , 而window源的名称将与window标题匹配。
  • thumbnailNativeImage - 缩略图图像。 注意: 无法保证缩略图的大小与传递给 desktopCapturer. getSourcesoptions 中指定的 thumbnailSize 相同。 实际尺寸取决于 screen 或 window 的比例。
  • display_id String - 一个由 Screen API 返回的与 Displayid 对应匹配的唯一标识符。 在某些平台上,这相当于上面 id 字段中的 XX 部分,其他平台则有所不同。 它在不可用时将会是一个空字符串。
  • appIcon NativeImage - 可能是带有 window 的应用的图标, 或者 srouce 有一个 type screen 时null。 图标的尺寸无法事先获知, 取决于应用提供的内容。