Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Lot of players for streaming media expects the server side to support <code>Range</code> requests. Usually the servletcontainer's (Tomcat, JBoss AS, Glassfish, etc) own default servlet supports this already. So if there's a way to publish the movie folder into the web by just adding the folder to the server configuration, so that you don't need a homegrown servlet for this, then I'd go on this route. </p> <p>For example, in Tomcat you could achieve this by just moving the file into <code>Tomcat/webapps/movies</code> folder, or by adding the following line to its <code>/conf/server.xml</code>:</p> <pre class="lang-xml prettyprint-override"><code>&lt;Context docBase="/var/www/movies" path="/movies" /&gt; </code></pre> <p>If you put the <code>final_lion.mov</code> file in <code>Tomcat/webapps/movies</code> or <code>/var/www/movies</code> folder depending on the configuration choice, then you should be able to access it by <a href="http://localhost:8080/movies/final_lion.mov" rel="nofollow">http://localhost:8080/movies/final_lion.mov</a> without the need for any homegrown servlet. Instead, Tomcat's own <a href="http://tomcat.apache.org/tomcat-7.0-doc/default-servlet.html" rel="nofollow"><code>DefaultServlet</code></a> will be used to stream the static content.</p> <p>But if there's no way, then you need to rewrite your servlet code in such way that it supports <code>Range</code> requests (also known as download resumes). You can find a concrete kickoff example in <a href="http://balusc.blogspot.com/2009/02/fileservlet-supporting-resume-and.html" rel="nofollow">this article</a>.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload