Fork me on GitHub
.. - .----. ... / .... .- .-. -.. / - --- / ..-. --- .-. --. . - / ... --- -- . --- -. . / .-- .... --- / --. .- ...- . / -- . / ... --- / -- ..- -.-. .... / - --- / .-. . -- . -- -... . .-. .-.-.-

一款兼容Electron的WebRTC编码工具包

kurento-utils-js is a browser library that can be used to simplify creation and handling of RTCPeerConnection objects, to control the browser’s WebRTC API. However, the official kurento-utils-js is no longer maintained, and problems might occur when using the official library.

This library is an optimized version of kurento-utils-js, currently it adds supports for screen sharing and mixed media sharing for mainstream browsers (as well as Electron, since v6.18.6) without extra plugins.

Installation Instructions

Be sure to have installed Node.js in your system:

1
2
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs

To install the library, it’s recommended to do that from the NPM repository:

1
npm install kurento-utils-universal
查看全文 ...

M-LC96-不同的二叉搜索树

题目描述

给你一个整数 n ,求恰由 n 个节点组成且节点值从 1n 互不相同的 二叉搜索树 有多少种?返回满足题意的二叉搜索树的种数。

示例 1:

1
2
输入:n = 3
输出:5

示例 2:

1
2
输入:n = 1
输出:1

提示:

  • 1 <= n <= 19

解题思路

查看全文 ...

进程间通信 (IPC) 的方式

InterProcess Communication

References

  1. 图解系统 https://xiaolincoding.com/os/
  2. https://www.cnblogs.com/kelamoyujuzhen/p/9389219.html

I. 独立进程与协同进程

独立进程:不会影响另一个进程的执行或被另一个进程的执行影响
协同进程:可能影响另一个进程的执行或被另一个进程执行影响(进程间需要通信)

查看全文 ...

一台IPCamera的复活之路...

IPCamera

IP + Camera 即网际协议+摄像机,是一种由传统摄像机与网络技术结合所产生的新一代摄像机,一般摄像机包含内置 Web 服务,可以通过HTTP/HTTPS协议将内容传输给观测主机。IP Camera 至今已有十多年的历史。

百度百科(https://baike.baidu.com/item/IP-CAMERA)

前言

前段时间搞来两个监控摄像头,没有商标和其他任何说明,并且是已经用过的设备,因此 IP 地址和访问端口肯定也被更改了,于是陷入了无尽的思考… 经过近两天的资料查找和设备配置,目前已经可以投入使用,用途就是照看家里的三个娃 (doge。

下面分享一下心得,其他网络设备的配置流程也与此大同小异(公网IP、端口映射、DDNS)。

查看全文 ...