[Feature Request] Chromecast support #289
Labels
No labels
awaiting-reply
breaking changes
bug
cannot-reproduce
dependencies
documentation
duplicate
electron-issue
enhancement
fix-available
good first issue
help wanted
invalid
javascript
need more information
need rebase
official-youtube-music-issue
plugin request
question
release
security
stale
Status: blocked
typo
wontfix
ytmd-issue
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: YTMD/youtube-music#289
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Cast as YouTube Music (as smartphone version)
Or cast as "tab" (as Chrome/Edge etc.)
I will try working on that, but only if you are prepared to test it out abit when its ready,
because I dont personally have one 😅
No problem
@playday3008
Ok here is the first draft version:
https://github.com/Araxeus/youtube-music/tree/chromecast
Its on a branch in my fork. can you clone and run
yarn start
on it?if not, and you are using windows - I can build and upload binaries for you if needed
After enabling the plugin and restarting the app (and allowing electron/youtube-music in firewall), it should theoretically connect to any device it finds - and play there the same music you play in the app
You can set up GitHub Actions or build it for me, bcoz im on Windows
Here you go
https://drive.google.com/drive/folders/1Kfa4USQtoUjZTZLzgToDM6kMELdkRqgC?usp=sharing
Not working @Araxeus
I have uploaded a new version (same gdrive folder)
I added a message box with current status (since you cant see console output)
Also The first button in 'Plugins' menu should be now 'Update Chromecast List'
can you download again and try updating and see what the message box output looks like?
Well, device found


But search output incorrect
P.S. Maybe you have Telegram to contact?
I've fixed that toString, and added more checks. you can download from folder again 😝
Does only find the device after clicking the Update button in the menu? or before?
Does it say anything when playing songs / pausing songs?
By the way try to register device only once, because there isn't currently any check for duplication (it adds device every time you find one)
so how do you cast. I have the latest version in windows and I dont see the plugin.
@BelgarionNL it hasn't been released yet (there is an open pull request)
Love your username BTW, is it from the Belgariad/Malloreon or just random? :P
yea its from the belgariad ofcourse :)
How can I test this on mac?
@Araxeus
Hi
Is there any update on cast functionality?
I can se cast icon on latest 1.14.0 but clicking it really does completely nothing.

Tried 1.12.1 from your gdrive but I don't see in there any option to cast at all
@Beersteddy I just noticed the same icon. Turns out it's from the underlying Youtube Music service. Presumably, the reason it does nothing in this app is that in a browser it brings up the menu to select the target cast device.
It would be interesting to know whether this new feature in the base service gets us any closer to casting from an electron app.
No it sadly doesn't, their internal implementation doesn't work because electron doesn't support[1][2] the
chrome.cast
api#509 will remove this button since it doesn't work.
PR #296 could be re-opened in the future (it mostly works)
@Beersteddy
Thats because you would need to clone the branch from the Pull Request to test the latest changes (gdrive was a very early alpha version)
Might have other bugs since its based on an old version of the app
Duplicate of #113