浏览代码

Update index.html

Alan Yeung 2 年之前
父节点
当前提交
551a719f27
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      web/Recorder/index.html

+ 3 - 1
web/Recorder/index.html

@@ -353,7 +353,9 @@
                 navigator.mediaDevices.getDisplayMedia({
                 navigator.mediaDevices.getDisplayMedia({
                         displaySurface: 'monitor',
                         displaySurface: 'monitor',
                         logicalSurface: true,
                         logicalSurface: true,
-                        cursor: 'always'
+                        cursor: 'always',
+                        video: true,
+                        audio: true
                     }).then(function(camera) {
                     }).then(function(camera) {
                     callback(camera);
                     callback(camera);
                 }).catch(function(error) {
                 }).catch(function(error) {