Cannot play videos served by rails 4

konstantin.semenov — Jul 06, 2014 07:58PM EDT

Hello fellow developers,

Our system stores short videos in the database and serves them as files back to the browser.Some browsers, i.e. Chrome/Firefox on the Mac or IE/Chrome/Firefox on Windows play thevideos normally. However, the Safari browser on Mac, as well as Safari/Chrome on iOS, and Chrome/Firefox on Android complain that "File could not be played".

Here is one of the conversations between the browser and the server that lead to suchmessage on a development machine:

=================================================The file is again rejected, and the new request comes from QuickTime, this time with a significantly reduced session cookie:=================================================