Browser build for node-castv2: An implementation of the Chromecast CASTV2
protocol
npm install
# workaround for: "SyntaxError: Binding 'arguments' in strict mode."
#
# file: ./node_modules/tls-browserify/index.js
# search: function(arguments)
# replace: function()
npm run build
<script src="//cdn.jsdelivr.net/npm/@warren-bank/browser-castv2@2.0.0/dist/es2020/castv2.js"></script>
- 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
- license for node-castv2 is MIT
- license for browser-castv2 is GPL-2.0
- only covers the content of this repo, which contains primarily build scripts