English | 简体中文
demo: https://ltsg123.github.io/webrtc-internals/
使用方式:
1、Mac safari 插件:先下载 Stay2 / Userscripts,将打包的 js,拷贝到脚本即可;
2、适用于 safari/firefox/移动端,demo 集成方式,可以将其放置在 body 下, <script src="webrtc-internals.js"></script>,加在 body 下就可以了
yarn
yarn build
yarn
yarn dev
http-sever
配置参数存储在 window 下 RTC_INTERNALS_PARAMS,可以直接需改/引用
因为会涉及更改 PC 原型方法,必须在 pc 建立前加载,否则会失效!!!
工具已引入了 webrtc-adapter,但还是有部分其他浏览器与 chrome 差异造成的问题,如下:
1.safari/firefox 在 ICE Candidate pair/grid 上数据存在局限性,(可通过观察 sdp 判断 candidate)
Use npm
# with npm
npm i webrtc-internals-adapter
CDN is also provided
<script src="https://ltsg123.github.io/webrtc-internals/dist/index.js"></script>
Any questions you can contact me at ltsg0317@outlook.com