Details
-
Bug
-
Resolution: Answered
-
Low
-
None
-
3.2
-
None
Description
https://answers.atlassian.com/questions/40796/viewing-inline-video-on-iphone
I'm inlining video in my Confluence pages using the Unable to render embedded object: File (video.mp4) not found. syntax. I'd like the video to be playable on the iPhone/iOS as well as a desktop browser.
The problem I'm running into is that the iPhone won't recognize the video. It puts up a big play icon with a cross through it. This happens both in the Confluence page and when I navigate to the video directly at the /download/attachments/ URL.
At first I thought that the video was encoded improperly for iOS so I double checked my export settings and exported it again. Then, I hosted the file from an Apache web server just to make sure that the iPhone could play it. And indeed it can. But the very same file after being uploaded to Confluence is not playable.
So, I looked at the HTTP response headers from each server.
Here are the Confluence headers:
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Cache-Control: no-cache, must-revalidate
Expires: Thu, 01 Jan 1970 00:00:00 GMT
X-Confluence-Request-Time: 1331313896053
Last-Modified: Fri, 09 Mar 2012 17:22:51 GMT
ETag: "1331313771000"
Content-Disposition: inline; filename="video1.mp4"
Content-Type: video/mp4;charset=UTF-8
Content-Length: 20391097
Date: Fri, 09 Mar 2012 17:24:56 GMT
And the Apache headers:
HTTP/1.1 200 OK
Date: Fri, 09 Mar 2012 17:27:41 GMT
Server: Apache/2.2.21 (Unix) mod_ssl/2.2.21 OpenSSL/0.9.8r DAV/2 PHP/5.3.8 with Suhosin-Patch
Last-Modified: Fri, 09 Mar 2012 17:21:20 GMT
ETag: "cecfe9-13724b9-4bad29efb2400"
Accept-Ranges: bytes
Content-Length: 20391097
Content-Type: video/mp4
So is the problem with charset in the Content-Type header? And if so is there a way to suppress that? I checked and the Confluence attachment content type is set to just "video/mp4".