Blog

Squid proxy setup, Blank Screen Issue with youtube videos

Lately we were setting up a youtube video caching and proxy server using squid in our project.
By the time we were done with configuration, everything worked like charm and a light weight proxy was setup in no time. Rules were written in config to allow youtube videos and as expected we were able to view youtube videos with no problem.

The very other day few client devices on which proxy was configured, started facing a weird issue. Their devices stopped playing youtube videos and rather started showing blank-white screen all over the video area.

While debugging the issue we removed the proxy from a device and voila, video playback started. Putting the proxy back again caused no issues for the time but few hours later the same issue appeared again.
This time we sat with the squid logs and a victim device.

As we forced the app to reload the video, we saw that squid was denying access to a domain nameds.ytimg.com.

From the name it was quite obvious that it is something like You Tube Image.
Apparently this is one of the google servers which serves youtube thumbnails, icons etc. and thats why devices had a blank screen while playing videos.

Allowing s.ytimg.com in squid config file seems to solve this issue.

Writing this just in case anyone faces the same Squid proxy setup, Blank Screen Issue with youtube videos – wastes time and then feels stupid about it.

By – Adil Ansar, Team Lead

adminSquid proxy setup, Blank Screen Issue with youtube videos
Share this post

Join the conversation