Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chromecast support #70

Open
3 of 4 tasks
shish opened this issue Aug 9, 2021 · 1 comment · May be fixed by #148
Open
3 of 4 tasks

Chromecast support #70

shish opened this issue Aug 9, 2021 · 1 comment · May be fixed by #148
Labels
browser For the browser subproject feature player For the player subproject

Comments

@shish
Copy link
Collaborator

shish commented Aug 9, 2021

It would be pretty neat if:

  • user visits karakara.uk and logs in using the browser2 interface on their phone
  • they click the "cast" icon
  • the player2 interface appears on their TV, logged into their room, reacting to their phone's commands

There is a proof of concept for this in the chromecast branch. TODO list:

  • make the "cast" icon neatly integrated in the browser2 menu bar
  • send a chromecast "play this media ID" command from browser2, using the queue name as the media ID
  • have player2 listen for "play this media ID" commands, set the queue name when it receives one
  • find some way to send chromecast keep-alive signals (the client library will kill the app if it goes 60s without a google command - but we do all of our commanding via MQTT, so google thinks nothing is happening) (Can we tell the library to play a silent 10 second audio track on infinite loop?)

Notes:
Unfortunately we can't tell chromecast "go to https://karakara.uk/player2/?queue_id=blah" - we have to register an app with google's developer program (I did this, our app ID is 05C10F57), then tell it "open app 05C10F57", then it goes to google's database and sees that "app 05C10F57" = "https://karakara.uk/player2/". Only after it has finished loading the generic player2 page, can we then send it a command telling it which room to join.

UPDATE: For player3, the app ID is 0FDED252

https://developers.google.com/cast/docs/web_sender/integrate
https://developers.google.com/cast/docs/reference/web_sender/

https://developers.google.com/cast/docs/web_receiver/basic
https://developers.google.com/cast/docs/reference/web_receiver/

Launch chromecast debugger from chrome://inspect/#devices

@shish shish added the feature label Aug 9, 2021
@shish shish added browser For the browser subproject player For the player subproject labels Sep 13, 2022
This was linked to pull requests Nov 14, 2022
@shish
Copy link
Collaborator Author

shish commented Apr 20, 2023

Chromecast TV HD/4K support h265, so I have ordered one of those to test with, maybe it'll support smooth CSS animations too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
browser For the browser subproject feature player For the player subproject
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant