puppeteer-auto-captur
所属分类:DevOps
开发工具:JavaScript
文件大小:0KB
下载次数:0
上传日期:2023-11-24 11:35:08
上 传 者:
sh-1993
说明: 木偶自动捕捉器
(puppeteer auto captur)
文件列表:
.prettierrc (174, 2023-12-16)
Custom.css (130, 2023-12-16)
Dockerfile (2150, 2023-12-16)
Makefile (172, 2023-12-16)
entitlements.xml (487, 2023-12-16)
local.conf (202, 2023-12-16)
main.js (12233, 2023-12-16)
package-lock.json (219782, 2023-12-16)
package.json (672, 2023-12-16)
script/ (0, 2023-12-16)
script/build (801, 2023-12-16)
script/deploy (253, 2023-12-16)
yarn.lock (77819, 2023-12-16)
## chrome-capture-for-channels
Capture video and audio from a Chrome tab using the [`chrome.tabCapture`](https://developer.chrome.com/docs/extensions/reference/tabCapture/) API. Built on [Puppeteer](https://pptr.dev/) and [puppeteer-stream](https://github.com/SamuelScheit/puppeteer-stream)
### setup
download the latest [release](https://github.com/fancybits/chrome-capture-for-channels/releases) for macOS or Windows
or run in docker:
```
docker run -d --name chrome-capture -p 5589:5589 fancybits/chrome-capture-for-channels
```
### usage
a http server is listening on port 5589 and responds to these routes. the response is a webm stream with h264 video and opus audio.
- `/stream/` for stream names registered in the code
- `/stream?url=` for other arbitrary URLs
setup a new Custom Channel using:
```
#EXTM3U
#EXTINF:-1 channel-id="weatherscan",Weatherscan
chrome://x.x.x.x:5589/stream?url=https://weatherscan.net
```
### development
to setup a development environment where you can edit and run `main.js`:
#### windows
```
winget install -e --id Git.Git
winget install -e --id OpenJS.NodeJS
git clone https://github.com/fancybits/chrome-capture-for-channels
cd chrome-capture-for-channels
npm install
node main.js
```
#### mac
```
brew install nodejs git
git clone https://github.com/fancybits/chrome-capture-for-channels
cd chrome-capture-for-channels
npm install
node main.js
```
近期下载者:
相关文件:
收藏者: