Can leofs provide mp4 video for html <video> tag?

47 views
Skip to first unread message

许若辰

unread,
Nov 15, 2017, 2:49:41 AM11/15/17
to LeoProject.LeoFS
Hi friends, I got a problem these days. It's about video storing.
Of course I can store a video in leofs and get it correctly, but when I tried to open it in explorer(actually in <video> tag), it wouldn't work.
I setup a tomcat to provide the video, everything works well. So I want to know whether leofs support "range" request header.
Then I compared the http response.

tocmat:

Accept-Ranges:bytes
Content-Length:10419330
Content-Range:bytes 0-10419329/10419330
Content-Type:video/mp4
Date:Wed, 15 Nov 2017 07:29:37 GMT
Last-Modified:Wed, 15 Nov 2017 07:15:14 GMT

leofs:

Connection:keep-alive
Content-Length:10419330
Content-Type:video/mp4
Date:Wed, 15 Nov 2017 07:23:38 GMT
Last-Modified:Fri, 10 Nov 2017 07:10:01 GMT
Server:LeoFS

The http request is :

Accept:*/*
Accept-Encoding:identity;q=1, *;q=0
Accept-Language:en,zh-CN;q=0.8,zh;q=0.6
Connection:keep-alive
Host:localhost:8080
Range:bytes=0-
User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36

Yosuke Hara

unread,
Nov 15, 2017, 7:16:40 PM11/15/17
to LeoProject.LeoFS
Thank you for your report.
We're going to check this issue today, then we will file the issue on GitHub after we reproduced that.

Yosuke Hara

Windkit LI

unread,
Nov 15, 2017, 7:19:32 PM11/15/17
to LeoProject.LeoFS
Seems LeoFS does not response the range request with "Content-Range" Header
I will file an issue about it.



On Wednesday, November 15, 2017 at 4:49:41 PM UTC+9, 许若辰 wrote:

许若辰

unread,
Nov 15, 2017, 7:31:59 PM11/15/17
to LeoProject.LeoFS
Thanks.

在 2017年11月16日星期四 UTC+8上午8:19:32,Windkit LI写道:

Windkit LI

unread,
Nov 16, 2017, 8:35:18 PM11/16/17
to LeoProject.LeoFS
We have merged the fix for the issue to the develop branch and tested with chrome, firefox
could you try the develop branch and see if the issue is fixed at your side?

许若辰

unread,
Nov 22, 2017, 1:44:50 AM11/22/17
to LeoProject.LeoFS
Sorry I'm busy recently so reply too late.
I would like to test it when I'm free but I prefer using 1.3.8, when will it release?

在 2017年11月17日星期五 UTC+8上午9:35:18,Windkit LI写道:
Reply all
Reply to author
Forward
0 new messages