测试stunturn服务是否有效
- https://webrtc.github.io/samples/src/content/peerconnection/trickle-ice
- https://ourcodeworld.com/articles/read/1526/how-to-test-online-whether-a-stun-turn-server-is-working-properly-or-not
mac下捕获屏幕权限错误
js
navigator.mediaDevices.getDisplayMedia({
video: true
});
shell
// 报错
$ DOMException : Permission denied by system for navigator. mediaDevices.getUserMedia
<u>检查系统偏好设置>安全性和隐私>隐私>屏幕录制, 添加Chrome权限</u>

非https下navigatormediadevicesgetusermedia无权限
需在对应浏览器中设置白名单
chrome开启对应flag
- 地址栏输入: <mark>chrome://flags/#unsafely-treat-insecure-origin-as-secure</mark>
- 将flag切换为enable
- 填写将要加入的域名:<mark>http://xxx.com</mark>
- 右下角Relauch重启生效

firfox开启对应功能
- about:config > media.devices.insecure.enabled
- about:config > media.getusermedia.insecure.enabled
socket断开连接后重连connect钩子不执行
- https://github.com/socketio/socket.io-client/issues/251
- 除刷新页面外建立socket连接能出发connect钩子外,其他情况断开重连都不再触发。但是连接依旧正常
设置媒体流音量麦克风
- https://blog.twoseven.xyz/chrome-webrtc-remote-volume
- https://stackoverflow.com/questions/43698961/how-to-set-volumes-in-webrtc
视频分辨率及constraints参数说明
视频编码及支持文件类型
视频字幕及缩略图
ffmpeg-with-nodejs
how-to-record-webrtc-in-3-steps
record-to-server
区域屏幕捕捉issue
- https://github.com/w3c/mediacapture-screen-share/issues/105
- https://github.com/w3c/mediacapture-screen-share/issues/158
- https://github.com/w3c/mediacapture-screen-share/issues/195
- https://github.com/w3c/mediacapture-viewport/issues/1
- https://developer.chrome.com/docs/web-platform/region-capture/