Casting results only in blue Cast icon on TV display
rafiahmad80 opened this issue · comments
After all installation and setup, the cast worked perfectly for most of the videos through alexa. But when i killed the start.sh using Cnrl+C and tried running start.sh again, it start giving lots of python errors in some lines in many of the files. When i googled those errors, i was asked in one of the forum to upgrade youtube-dl package to the newest one. I did that.
Afterwards, when i asked alexa to play something on chromecast, Alexa finds the video and on my command prompt, i see the youtube url for video and audio showing up. There is absolutely no error message. My TV chromecast also tried to load it. There is a blue bar goes from left to right but shows a blue chromecast icon in the middle. And this is where it gets stuck. The video/ audio not playing anymore.
I can play video on my TV chromecast using my phone and table just fine.
My OS is raspbian, on raspberry pi 3.
Please let me know, how to fix it.
Never mind i resolved the issue by myself. The issue was with the youtube url we were getting through youtube-dl. With below option in "ChromecastSkill.py" file, the output was 2 different URLs, one each for video and audio file. That was causing issue with my Chromecast.
youtube-dl -g --no-check-certificate --
I added "-f best". The output was only 1 url, having both video and audio. This made things working again.
youtube-dl -g --no-check-certificate -f best --
PS: Make sure to delete compiled file ChromecastSkill.pyc file before you try again. This file will be automatically created again when you run start.sh
Do you mind making a PR?
Hi Rafi,
Thanks for your efforts so far, the usual process is:
- fork this repository
- make changes in your forked version
- make a pull request back to this repository
That way we get a diff of all the changes, it can be linked to issues, etc.
It should hopefully be obvious from the GitHub interface which buttons to press, but if you get stuck don't hesitate to ask and I'll help you however I can.
Luke
Fixed with PR