electron

Saving desktopCapturer to video file from Electron app

梦想的初衷 提交于 2020-01-10 03:28:44
问题 Basing on electron api and this question I'm trying to save recorded user screen to .webm file in videos folder in root app folder. Actually it's almost working because it save .webm file but the file which is saved is empty, it weigh 0B.. I don't know what I'm missing here. So it looks like it's somehow not recording correctly because file is empty.. edit when debbuging I discovered that recording is probably working correctly because blobs which I console log has value inside, after

npm start not launching browser window [duplicate]

我的梦境 提交于 2020-01-09 11:29:12
问题 This question already has an answer here : NPM run * doesn't do anything (1 answer) Closed 10 days ago . Update — Figured out it thanks to somebody else experiencing the exact same problem right around the exact same time mine must have gone haywire, oddly enough. I have not worked on my Electron projects in weeks, and in the meantime Electron suddenly stopped working. Even if I create a new project, it seems to start and then end immediately without any errors, warnings, or notifications,

NPM全局安装依赖权限报错Error: EACCES: permission denied

柔情痞子 提交于 2020-01-07 14:08:34
最近在安装electron-forge的时候报错如下: ➜ ~ sudo npm install -g electron-forge npm WARN deprecated core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3. npm WARN deprecated cross-spawn-async@2.2.5: cross-spawn no longer requires a build toolchain, use it instead npm WARN deprecated wrench@1.5.9: wrench.js is deprecated! You should check out fs-extra (https://github.com/jprichardson/node-fs-extra) for any operations you were using wrench for. Thanks for all the usage over the years.

electron串口通讯

冷暖自知 提交于 2020-01-07 12:10:45
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 1、已管理员身份安装 windows-build-tools npm install --global windows-build-tools 2、安装 node-serialport npm install serialport 3、重新编译项目 .\node_modules\.bin\electron-rebuild.cmd 来源: oschina 链接: https://my.oschina.net/u/2262481/blog/3154282

How I can access static files outside the project root?

若如初见. 提交于 2020-01-07 09:24:07
问题 The bounty expires in 3 days . Answers to this question are eligible for a +50 reputation bounty. Raul Castro Rivero is looking for a canonical answer . I'm developing an app with Electron and React, it's kind of mp3 player. The problem is that I want to play audios that are not in the project folder. How can I upload these files from my hard drive? import React from 'react'; import Sound from 'react-sound'; class App extends React.Component { render() { return ( <Sound url='/media/user/Vol/a

How I can access static files outside the project root?

折月煮酒 提交于 2020-01-07 09:23:37
问题 The bounty expires in 3 days . Answers to this question are eligible for a +50 reputation bounty. Raul Castro Rivero is looking for a canonical answer . I'm developing an app with Electron and React, it's kind of mp3 player. The problem is that I want to play audios that are not in the project folder. How can I upload these files from my hard drive? import React from 'react'; import Sound from 'react-sound'; class App extends React.Component { render() { return ( <Sound url='/media/user/Vol/a

使用Theia——创建扩展包

一曲冷凌霜 提交于 2020-01-07 06:49:14
上一篇: 使用Theia——构建你自己的IDE 创建Theia扩展包   本例中,我们将添加一个菜单项“Say hello”用来显示一个通知“Hello world!”。本文将指导你完成所有必要的步骤。 Theia的架构   Theia应用程序由所谓的扩展包( extensions )构成。一个扩展包提供一组特定功能的小部件、命令和处理程序等。Theia本身提供了一些扩展包,如编辑器、终端、项目视图等。每一个扩展包都属于它们各自的npm包。   Theia定义了大量的contribution接口,允许扩展包将功能添加到应用程序的各个部分。只需要按名称搜索 *Contribution 就可以找到这些接口。扩展包实现了这些contribution接口的具体功能。在本例中,我们将实现 CommandContribution 和 MenuContribution 。扩展包与Theia应用程序之间还可以通过各种 services 和 managers 来进行交互。   在Theia中,所有的东西都是通过依赖注入( Dependency Injection )的方式连接起来的。一个扩展包定义了一个或多个依赖注入模块。这些依赖注入模块就是绑定并实现contribution接口的地方,它们被列在扩展包的 package.json 文件中。扩展包可以用于前端,例如提供UI扩展,也可以用于后端

Electron App Error: EACCES: permission denied, open

帅比萌擦擦* 提交于 2020-01-07 05:28:12
问题 [20:25:45] Using gulpfile ~/Desktop/GitHub/electra/gulpfile.js [20:25:45] Starting 'build-client-bundles'... [20:25:45] Starting 'build-client-scss'... [20:25:45] Starting 'build-client-html'... [20:25:45] Starting 'build-client-assets'... [20:25:45] Starting 'build-server'... [20:25:45] Starting 'watch-client'... [20:25:45] Finished 'watch-client' after 16 ms [20:25:45] Starting 'watch-server'... [20:25:45] Finished 'watch-server' after 1.58 ms [20:25:45] Starting 'watch'... [20:25:45]

Error when interconnecting ipcRenderer and ipcMain in electron

北战南征 提交于 2020-01-07 04:22:14
问题 I have configured cli angular in electron, and I have a link where it execute a function that intercomunicate ipcRenderer and ipcMain: html: <a (click)="check()"> click </a> component: constructor(private _e: ElectronService) { } check () { this._e.ipcRenderer.send ('conn', 'round'); this._e.ipcRenderer.on ('conn-st', (event, args) => { console.log (args); }); } main.js (electron): ipcMain.on ('conn', function (event, args) { event.sender.send ('conn-st', 'trip'); }); The problem is that when