Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Viewing inline video on iPhone

Aleeda Crawley March 8, 2012

I'm inlining video in my Confluence pages using the !video.mp4! 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".

1 answer

0 votes
John Masson
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 13, 2012

Hi Jesse,

You might want to raise this as a New Feature request in the Confluence project on http://jira.atlassian.com. I'll keep an eye out for it.

Thanks,
John

Aleeda Crawley March 14, 2012

Ok, here it is: https://jira.atlassian.com/browse/CONF-24928

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events