Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p><strong>UPDATE</strong></p> <p>so apparently, even though the server signals it accepts range requests (with the <code>Accept-Ranges: bytes</code>), it does not actually do so. to see if there is another way to make the flv seekable, let's have a look at the communication between flash player and server (i use <a href="http://www.wireshark.org/" rel="nofollow noreferrer">wireshark</a> for this):</p> <ol> <li><p>the request when starting the player is:</p> <pre><code>GET /files/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/ HTTP/1.1 Host: xxxxxx.megavideo.com &lt;some more headers&gt; &lt;no range header&gt; </code></pre></li> <li><p>this is answered with a response like that:</p> <pre><code>HTTP/1.0 200 OK Server: Apache/1.3.37 (Debian GNU/Linux) PHP/4.4.7 Content-Type: video/flv ETag: "&lt;video-id&gt;" Content-Length: &lt;length of complete video&gt; &lt;some more headers&gt; &lt;the flv content&gt; </code></pre></li> <li><p>now when i seek in the flash player, another request is sent. it is almost the same as the initial one, with the following difference:</p> <pre><code>GET /files/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/8800968 HTTP/1.1 &lt;same headers as first request&gt; </code></pre></li> <li><p>which gets answered with a response almost the same as the initial one, with a difference only in the <code>Content-Length</code> header.</p></li> </ol> <p>which lets me assume that the <code>8800968</code> at the end of the request url is the "seek range" (the byte offset in the file after seeking) we are looking for, and the second response <code>Content-Length</code> is the initial <code>Content-Length</code> (the length of the whole file) minus this range. which is the case indeed.</p> <p>with this information, it should be possible to get what you want. good luck!</p> <p><strong>UPDATE END</strong></p> <p>this will only work if the server supports <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35.2" rel="nofollow noreferrer">HTTP RANGE requests</a>. if it does, it <a href="https://stackoverflow.com/questions/1538952/retrieve-partial-web-page/1539084#1539084">will return a 206 Partial Content response code with a Content-Range header and your requested range of bytes</a>. check for these in the response to your request.</p>
 

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