上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 19 下一页
摘要: /// <summary> /// INI文件读写类。 /// </summary> public class INIFile { public string path; public INIFile(string INIPath) { path = INIPath; } [DllImport("k 阅读全文
posted @ 2023-10-25 16:04 ziff123 阅读(86) 评论(0) 推荐(0)
摘要: 一、typeScript安装以及基础编译 npm i -g typescript 安装完,进入ts文件的项目目录下,在命令行执行 tsc hello.ts(hello.ts是ts文件,执行这个命令可以把ts文件编译为hello.js文件) tsc hello.ts 这个命令,ts文件里的代码每改变一 阅读全文
posted @ 2023-10-13 17:35 ziff123 阅读(1599) 评论(0) 推荐(0)
摘要: #region 向当前活动文本框输入文字 /// <summary> /// 向当前活动文本框输入文字 /// new SendMsg().SendText("你要输入的字符串"); /// </summary> public class SendMsg { [DllImport("user32.d 阅读全文
posted @ 2023-10-13 17:05 ziff123 阅读(186) 评论(0) 推荐(0)
摘要: 1、查看串口 ls -l /dev/ttyACM0 crw-rw 1 root dialout 166, 0 5月 24 17:17 /dev/ttyACM0 2、可以看到用户 (owner 是 root)而所属用户组为 dialout, 因此一种方法是把我们的登陆账号加入到这个用户组。 查看系统用 阅读全文
posted @ 2023-09-19 10:29 ziff123 阅读(1331) 评论(0) 推荐(0)
摘要: 1、确保已经安装了 Node.js 和 npm。 2、在你的 Electron 项目目录下,执行以下命令安装 electron-debug: npm install --save-dev electron-debug 3、修改主进程(main process)的启动代码(通常在 main.js 文件 阅读全文
posted @ 2023-09-15 11:37 ziff123 阅读(463) 评论(0) 推荐(0)
摘要: 1、项目结构: 2、前端: a、index.html <!DOCTYPE html> <html> <head> <title> WebRTC demo </title> </head> <body> <h1> WebRTC Demo </h1> <div id="buttons"> <input 阅读全文
posted @ 2023-09-11 17:41 ziff123 阅读(76) 评论(0) 推荐(0)
摘要: webRTC报“OperationError: Failed to execute 'setLocalDescription' on 'RTCPeerConnection': Failed to set local offer sdp: Called in wrong state: have-rem 阅读全文
posted @ 2023-09-07 09:01 ziff123 阅读(605) 评论(0) 推荐(0)
摘要: 一、概念 Node.js WebSocket是一个用于建立实时双向通信的模块。WebSocket协议允许服务器与客户端之间进行全双工通信,其API使用了事件驱动和流式的方式。 二、客户端 <!DOCTYPE html> <html> <head> <script src="http://libs.b 阅读全文
posted @ 2023-08-24 17:55 ziff123 阅读(88) 评论(0) 推荐(0)
摘要: 1、概念 navigator.mediaDevices.getUserMedia是一个Web API,用于在浏览器中获取访问音频和视频设备的权限,从而进行媒体的捕获。具体来说,它可以用于在网页上实时获取用户的摄像头和麦克风。 它返回一个 Promise 对象,成功后会resolve回调一个 Medi 阅读全文
posted @ 2023-08-24 15:53 ziff123 阅读(147) 评论(0) 推荐(0)
摘要: 一、概述 coturn 是开源的服务器应用,完整实现了 STUN 和 TURN 协议。借助 coturn,我们可以快捷方便的搭建一个 STUN/TURN 服务。 二、安装步骤 1、安装coturn依赖库 sudo apt-get install libssl-dev sudo apt-get ins 阅读全文
posted @ 2023-08-24 11:50 ziff123 阅读(748) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 19 下一页