小编Hir*_*koo的帖子

Google Chrome 无头错误“不支持”当使用 getDisplayMedia 尝试从 Puppeteer 中的 Chrome 选项卡录制屏幕时

我正在使用带有 Chromium 80 的 Puppeteer 最新版本,我正在尝试从 chrome headless 页面录制视频并打开所有这些标志:

{
  headless: true,
  devtools: false,
  args: [
    '--no-sandbox',
    '--allow-insecure-localhost',
    '--enable-usermedia-screen-capturing',
    '--use-fake-ui-for-media-stream', // In headless: false it will capture display rather than tab and in headless: true doesn't work
    '--auto-select-desktop-capture-source=[RECORD]', //[RECORD] is the title of my localhost page trying to screen capture
    '--remote-debugging-port=9222',
    '--window-size=1440,900',
  ],
  ignoreDefaultArgs: [
    '--mute-audio',
    '--disable-media-session-api',
  ]
}
Run Code Online (Sandbox Code Playgroud)

在 Windows 上,如果是headless : false这样,它将捕获 chrome 选项卡(有时会崩溃)。但是,如果这headless : true甚至在 Windows 上,它就会说它是Not supported. 如果--use-fake-ui-for-media-stream标志打开,则是另一回事,无论是 …

google-chrome headless screen-capture google-chrome-headless puppeteer

8
推荐指数
1
解决办法
1156
查看次数

Kendo MVVM以及绑定或扩展自定义事件

我的页面中有一个ComboBox,当cliend写下任何字母时,我想将keypress事件绑定到我的Kendo ComboBox.

据我所知,kendo在ComboBox上没有任何按键事件.

我发现kendo有这样的东西绑定值和函数:

kendo.data.binders.slide = kendo.data.Binder.extend({
        refresh: function () {
            var value = this.bindings["slide"].get();

            if (value) {
                $(this.element).slideDown();
            } else {
                $(this.element).slideUp();
            }
        }
    });
Run Code Online (Sandbox Code Playgroud)

来源:点击这里

但问题是我无法解决这个问题,并让它在KendoComboBox控件的InputBox上触发keypress事件.

请记住,我正在使用MVVM,我不想使用像$('k-input')这样的东西.keypress(...); 我想通过操纵kendo为我们提供的extend方法在ken​​do框架中添加一些东西.

先感谢您.

mvvm custom-events kendo-ui

6
推荐指数
1
解决办法
7437
查看次数

Node Webkit - 如何执行exe文件?

我正在使用Node Webkit组件来包装我的html5应用程序.在这个应用程序中,我需要运行CMD或其他(exe)文件,如"customApplication.exe"并传递一些参数.

在这件事上我真的很无望.如果你能帮助我,我会很高兴的.这非常重要,我不想更改我的组件并使用Awesomium或其他组件.

非常感谢你提前.

html5 node.js node-webkit

1
推荐指数
1
解决办法
8955
查看次数