@warren-bank/browser-castv2-client
v1.0.0
Published
Browser build for 'node-castv2-client': A Chromecast client based on the new (CASTV2) protocol
Downloads
7
Maintainers
Readme
browser-castv2-client
Browser build for node-castv2-client: A Chromecast client based on the new (CASTV2) protocol
Build
npm install
npm run buildCDN
<script src="//cdn.jsdelivr.net/npm/@warren-bank/[email protected]/dist/es2020/castv2-client.js"></script>Usage
- start the TCP proxy server
- command-line:
chromecast_ip='192.168.0.100' chromecast_port='8009' proxy_port='3000' ws-tcp-proxy "${chromecast_ip}:${chromecast_port}" --port "$proxy_port" - is a required workaround for the limitation that client-side javascript cannot make TCP socket connections
- allows the client-side javascript to connect by websocket
- pipes data from the websocket to the TCP socket
- pipes data from the TCP socket to the websocket
- command-line:
- run the client-side javascript library in a web browser
- example
- dependencies:
Legal
- license for node-castv2-client is MIT
- license for browser-castv2-client is GPL-2.0
- only covers the content of this repo, which contains primarily build scripts
