<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">We (Zotonic) also implemented range requests in cowmachine.<div class=""><br class=""></div><div class=""><a href="https://github.com/zotonic/cowmachine/blob/master/src/cowmachine_response.erl#L72" class="">https://github.com/zotonic/cowmachine/blob/master/src/cowmachine_response.erl#L72</a></div><div class=""><br class=""></div><div class="">Cowmachine is the Webmachine variant for the new version of Zotonic.</div><div class="">It uses Cowboy instead of Mochiweb, and simplified the controller callbacks.</div><div class=""><br class=""></div><div class="">- Marc</div><div class=""><br class=""></div><div class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 18 Jul 2018, at 10:06, by <<a href="mailto:by@meetlost.com" class="">by@meetlost.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">OK<br class="">I will try cowboy_rest.<br class="">Thanks<br class=""><br class=""><blockquote type="cite" class="">在 2018年7月18日,15:59,Loïc Hoguin <<a href="mailto:essen@ninenines.eu" class="">essen@ninenines.eu</a>> 写道:<br class=""><br class="">Someone did a partial implementation for cowboy_rest here: <a href="https://github.com/ninenines/cowboy/pull/1059" class="">https://github.com/ninenines/cowboy/pull/1059</a><br class=""><br class="">But you'll have to make your own handler (or a wrapper of cowboy_static).<br class=""><br class="">Adding proper support is currently not prioritized, it's not been necessary for customers yet and I still have a few more important tasks to do (better Websocket, better cookies, and CORS support being the next big three, and of course Ranch 2.0).<br class=""><br class="">On 07/18/2018 08:28 AM, by wrote:<br class=""><blockquote type="cite" class="">Well, I see.<br class="">Is there any existing resolution about this? Maybe third party handler?<br class="">I believe the requirements for serving video liked content is very common.<br class=""><blockquote type="cite" class="">在 2018年7月18日,14:08,Loïc Hoguin <<a href="mailto:essen@ninenines.eu" class="">essen@ninenines.eu</a>> 写道:<br class=""><br class="">If I recall that's because the static files handler does not support range requests yet.<br class=""><br class="">On 07/18/2018 05:21 AM, by wrote:<br class=""><blockquote type="cite" class="">Hi,<br class="">I am trying to serve a static website via Cowboy, and I followed the guide, it seems works fine.<br class="">The problem is that the static website has a mp4 file, and I play the video on web page.<br class="">It can play, but when I try to click the progress bar to do fast forward, it keeps play on the normal way(not work).<br class="">Do I need add some other configurations for this?<br class="">Same static files works fine with nginx.<br class="">Thanks,<br class="">Yao Bao<br class="">_______________________________________________<br class="">erlang-questions mailing list<br class=""><a href="mailto:erlang-questions@erlang.org" class="">erlang-questions@erlang.org</a><br class="">http://erlang.org/mailman/listinfo/erlang-questions<br class=""></blockquote><br class="">-- <br class="">Loïc Hoguin<br class=""><a href="https://ninenines.eu" class="">https://ninenines.eu</a><br class=""></blockquote></blockquote><br class="">-- <br class="">Loïc Hoguin<br class=""><a href="https://ninenines.eu" class="">https://ninenines.eu</a><br class=""></blockquote><br class="">_______________________________________________<br class="">erlang-questions mailing list<br class=""><a href="mailto:erlang-questions@erlang.org" class="">erlang-questions@erlang.org</a><br class="">http://erlang.org/mailman/listinfo/erlang-questions<br class=""></div></div></blockquote></div><br class=""></div></body></html>