@warren-bank/browser-chromecast-player
v1.0.0
Published
Browser build for 'chromecast-player': A simple chromecast player
Maintainers
Readme
browser-chromecast-player
Browser build for chromecast-player: A simple chromecast player
Build
npm install
# remove an unwanted dependency, so it's excluded from the build
rm -rf ./node_modules/chromecast-scanner
npm run buildCDN
<script src="//cdn.jsdelivr.net/npm/@warren-bank/[email protected]/dist/es2020/chromecast-player.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
Legal
- license for chromecast-player is MIT
- license for browser-chromecast-player is GPL-2.0
- only covers the content of this repo, which contains primarily build scripts
