- Clone repo
npm ci
- Build with
npm run build
- Build receiver and host contents from
dist
folder somewhere publicly accessible (e.g. upload to s3 or host viangrok
) - Create new application on the google cast console and point to url from step 1
- Make sure your chromecast device is registered in the google cast console
- Change player config to use newly created application ID from step 2
- Casting device should now be visible in the chrome remote debugger (
chrome://inspect/#devices
) - Whenever you make changes to the sender code you can clear the chromecast cache by calling
window.location.reload()
in the chromecast remote debugger
I've created a new cast application but cannot cast to it
- Make sure to reboot your chromecast device after creating a new application, otherwise your chromecast might not be able to connect.
- If your cast application is unpublished it will only work on registered devices. (See 2. in
Debug on a chromecast
)
I am not able to play back DRM protected content
- DRM playback only works if you host the chromecast receiver application via https. (Otherwise you should see Error code 6001 in the debugger.)