[ 
https://issues.apache.org/jira/browse/SLING-6046?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15486994#comment-15486994
 ] 

Ian Boston commented on SLING-6046:
-----------------------------------

Some questions:
Is it just video/mp4 that matter or all large files ?
Does IE use the response from other resources to determine if it can send a 
range header on the first request for the large file ?

Patch looks fine, I am wondering if serving these files via the JVM is the 
right thing to do and if it would not be better to have proper X-sendfile 
support protected by appropriate AuthZ.

IIRC Sling uses Jetty that will transfer files using http chunked transfer 
encoding [1], provided no content-length header is sent in the response and the 
output stream is flushed at appropriate moments.  If the transfer encoding is 
chunked, how does the video play in IE11, I realise the transfer will start 
from the beginning and there wont be support for fast forward, but will the 
video start playing immediately ?


1 https://en.wikipedia.org/wiki/Chunked_transfer_encoding

> While Streaming Video to IE 11, StreamRendererServlet do not use Partial 
> Content Response [code 206]
> ----------------------------------------------------------------------------------------------------
>
>                 Key: SLING-6046
>                 URL: https://issues.apache.org/jira/browse/SLING-6046
>             Project: Sling
>          Issue Type: Bug
>          Components: Servlets
>    Affects Versions: Servlets Get 2.1.18
>            Reporter: Ashok Kumar
>         Attachments: StreamRendererServlet.java.patch
>
>
> Since IE 11 expects "Accept-Ranges" [0] response header to start making 
> requests with Range header, so sling lack in streaming of video content for 
> IE end users. We can add Accept-Ranges = bytes header to response , either 
> selectively only for video/mp4 mimetype ( video tag on IE looks for mp4 )  or 
> always.
> Without support of partial content response (206) for IE users, all large 
> video files are being downloaded in single chunk and user need to wait for 
> long to see video content playing. 
> [0] http://stackoverflow.com/questions/25654422/http-pseudo-streaming-in-ie11 
>  



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to