I’m having a problem with a youtube cache I’m trying to make (my internet connection is really slow). It works by detecting if a videoplayback page is requested and saves the response to the disk. It works fine with lightspark and the html5 player on FireFox, but when I try it on Google Chrome I get a Write Failure in RespCacheCallback.
I have the source here as it is too long to be posted with the question.
I forgot to add the range to the ID created in the program when I searched the cache, which meant that the program tried to send the entire video when a small portion was requested, which made the player close the connection. That was fixed by adding this method to MainClass
This method checks if the
rangeparameter is present in the url, and then gets the value of it.Then adding this code before
if(File.Exists (requestData.Signature + "_done"))This adds the range to the signature if the range parameter is detected