video.captureStream 不支持 chrome 54

video.captureStream not supported chrome 54

当我尝试 运行 示例代码时:https://webrtc.github.io/samples/src/content/capture/video-pc/

在 Google chrome Linux Mint 上的版本 54.0.2840.90(64 位),它不工作。 Firefox 运行良好。

有什么问题?

我注意到了 same issue,看来您必须在 Chrome 中启用 "Experimental Web Platform features" 才能使演示正常工作。

  1. 转到 chrome://flags
  2. 搜索 "Experimental Web Platform features"
  3. 启用并重新启动。

不幸的是,它仍然无法正常工作,至少在最初加载页面时是这样。不过,如果我拖动播放器位置,它似乎可以工作。