erdnaxeli / castblock

Automatically skip sponsor segments and ads in YouTube videos playing on Chromecast.
MIT License
182 stars 20 forks source link

Play Custom Videos #62

Open Enigma1309 opened 7 months ago

Enigma1309 commented 7 months ago

Ik this is a bit out of scope but is there any way i can use this to switch the currently playing video to the video id of my choice?

stephen304 commented 4 months ago

That should be possible using the same library that we use for skipping/muting chromecasts - go-chromecast

For example:

go-chromecast load-app YouTube <yt-video-id> -u <chromecast-uuid>

Should play a specific video on the chromecast, but for me it gets stuck after it opens the youtube UI. It seems it's broken as Vishen notes in this bug: https://github.com/vishen/go-chromecast/issues/112#issuecomment-894786620

You can also just use the load command with the url of any publicly accessible media file and that should work, for example:

go-chromecast load "http://distribution.bbb3d.renderfarming.net/video/mp4/bbb_sunflower_1080p_30fps_normal.mp4" -u <chromecast-uuid>

Streams big buck bunny to the chromecast.

Enigma1309 commented 4 months ago

okay i'll check it out and tell

Enigma1309 commented 4 months ago

hey thanks for go-chromecast, but how do i get the chromecast-uuid of the device? edit :- never mind found out that (go-chromecast ls in case anyone's interested)