I have a golang webserver which fetches video files from nginx.
When I call nginx video directly from <video>
html5 tag the video plays smoothly with progressive download. By progressive download I mean the random seek works without any special player logic.
But when I call it through golang webserver which inturn calls nginx link using golang NewSingleHostReverseProxy() class the progressive download does not work.
Is it possible to enable progressive download using golang reverse proxy ?
Code for reverse proxy in golang webserver:
url, _ := url.Parse("http://nginx-server/")
proxy := httputil.NewSingleHostReverseProxy(url)
router.PathPrefix("/video").HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
proxy.ServeHTTP(w, r)
})