I’m trying to build a go http proxy for youtube. Why youtube? Because I figure that’s gotta be the hardest proxy case I can think of, and it’ll be good for learning Go. It’s a useless proxy, proxying http://localhost:8000 –> https://youtube.com.
I can get it to sort of work, but video playback doesn’t work, and I can’t figure out why. I’ve tried using different APIs to make the calls, tried doing different type of io reading, notta. I can get it to sometimes load the youtube homepage, sometimes load a picture, but I’ve never gotten further than that.
I put the code here: https://github.com/ipeerbhai/GoPlay
Can anyone point me in the right direction? What am I doing wrong here?
Thanks in advance!