The setup is pretty basic. This is the Path in Main() that is supposed to
serve the Files.
http.Handle("/data/", auth.Chkauth(view.HandlerToHandleFunc(http.StripPrefix
("/data/", http.FileServer(http.Dir("./data/"))))))
The html-Template works like this.
<video width="1280" height="720" preload="auto" controls><source src=
"{{$v.Source}}" type="video/webm"> {{if $v.Subpath}}<track src=
"{{$v.Subpath}}" kind="subtitle" src="de-DE" label="german">{{end}}
Your browser does not support the video tag.</video>
I play a video in chrome and get...
Request
GET /data/path/to/webm/video.webm HTTP/1.1
Host: myhost
Connection: keep-alive
Accept-Encoding: identity;q=1, *;q=0
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like
Gecko) Chrome/43.0.2327.5 Safari/537.36
Accept: */*
Referer:
https://host/files/path/to/webm/video.webmAccept-Language: en-US,en;q=0.8,de;q=0.6
Cookie: justmycookie
Range: bytes=0-
response:
HTTP/1.1 206 Partial Content
Accept-Ranges: bytes
Content-Length: 869048311
Content-Range: bytes 0-869048310/869048311
Content-Type: video/webm
Last-Modified: Sat, 14 Feb 2015 09:10:26 GMT
Date: Sat, 14 Mar 2015 10:15:12 GMT
Now when I try to seek in the video and jump to somewhere in the middle.
Request:
GET /data/path/to/webm/video.webm HTTP/1.1
Host: myhost
Connection: keep-alive
Accept-Encoding: identity;q=1, *;q=0
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like
Gecko) Chrome/43.0.2327.5 Safari/537.36
Accept: */*
Referer:
https://host/files/path/to/webm/video.webmAccept-Language: en-US,en;q=0.8,de;q=0.6
Cookie: justmycookie
Range: bytes=869021010-869048310
If-Range: Sat, 14 Feb 2015 09:10:26 GMT
Response:
HTTP/1.1 200 OK
Accept-Ranges: bytes
Content-Length: 869048311
Content-Type: video/webm
Last-Modified: Sat, 14 Feb 2015 09:10:26 GMT
Date: Sat, 14 Mar 2015 10:15:16 GMT
This should be a really basic setup shouldn't it?
On Saturday, March 14, 2015 at 11:06:26 AM UTC+1, Tamás Gulácsi wrote:
Can you share code?
Have you debugged with wireshark, what requests happen, what are the
responses... Etc?
Even the server log could help.
You point on SDL: does it work without SSL?
So please try to narrow the problem.
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
For more options, visit
https://groups.google.com/d/optout.