Html5 player video files have MIME Type of 'text/html', rather than 'video/mp4'


(Amurray) #1

Hi Everyone!

Wondering if anyone's encountered this:

 

Using new html5 cloud-based players, videos stored within the CMS render a MIME Type of 'text/html', rather than 'video/mp4' and is a problem with newer setups: Win7/8 using FF16+, and IE9+ etc. BrowserStack & httpFox Tested also.

 

Failed tests:

Tried to force editable/open field for dc.formats in schema <meta name="dc.format" scheme="dcterms.IMT" content="text/html" />

Tried to remove the schemas off the assets completely

Altering the Video files type field in the video assets Details screen.

 

Success:

Same setup with cloud-hosted html5 video player - with video files not stored within cms.

 

Setup in /local/matrix/ csu_news_matrix_4180/fudge/standards_lists/mime_types.inc okay:

'mp4'           => 'video/mp4', 'flv'              => 'video/x-flv',

 

Followed instructions from this post too:

http://forums.squizsuite.net/index.php?showtopic=3944&hl=%2Bmime+%2Bvideo

"Apache will be sending them and determining their mime type. You could try making the files Live and granting public read access to force Apache to serve them to see if that helps you."

 

 

Alternatives are:

 

1. creating (many....) duplicate OGG media file sitting alongside current videos for browser support

2. storing external - You Tube, anywhere else

 

 

Would any one know why it is occurring within the walls of the CMS and why manual overrides aren't working?


(Asharpe) #2

Hi amurray,

 

I assume the files are live and have public read, and if so then your web server will need to be configured to send the appropriate mime type.

 

Here's the configuration that Apache would need:

 

AddType video/mp4 mp4

AddType video/x-flv flv


(Tim Davison) #3

We had a similar issue - as soon as we made the files public/read the MIME types changed.  In our case new MSOffice docx, etc did not have the correct types.  It's because the files are served by apache in this case, not Matrix, so we needed to get Apache mime types updated.  Your apache admin will need to update this config.  We did it via Squiz ticket, we have SLA so Squiz did it for us via ticket.


(Amurray) #4

Hi Asharpe, Tim, thanks for the advice!

 

I've gotten back our mime types apache-side, and they will need updating:

 

video/mp4v-es video/mpeg                      mpeg mpg mpe
video/parityfec
video/pointer
video/quicktime                 qt mov
video/vnd.fvt
video/vnd.motorola.video
video/vnd.motorola.videop
video/vnd.mpegurl               mxu
video/vnd.mts
video/vnd.nokia.interleaved-multimedia
video/vnd.vivo
video/x-flv                     flv
video/x-ms-asf                  asf asx
video/x-ms-wm                   wm
video/x-ms-wmv                  wmv
video/x-ms-wmx                  wmx
video/x-ms-wvx                  wvx
video/x-msvideo                 avi
video/x-sgi-movie               movie

 

We have go ahead to test in our QA environment tonight so will confirm fix here once setup on Prod,

 

Thanks again for the confirm, here I was thinking the mime types inc file defined all this, but fingers crossed!


(Amurray) #5

Thank you all for your advice, A little late to return, but mime types have been updated on the Production environment:

'ogv'           => 'video/ogg',
'mp4'          => 'video/mp4',
'webm'        => 'video/webm',
'flv'              => 'video/x-flv',
 

I added an editable mime type field as a schema, the page is set to text/html and the internally-hosted video file it display is video/mp4.

 

In all tests (newer setups: Win7/8 using FF16+, and IE9+) analysing the incoming and outgoing HTTP traffic with browser addons, at the backend cms address, we are picking up video/mp4 on the video file, but at the live address, still text/plain on the mp4. I thought caching might be at play, but it has been well over our usual time period.

http://www.csu.edu.au/induction/home/video-mime-test is my test, with a self-hosted video.

In the time elapsed, stakeholders are moving files to youtube as a standard setup, but this has got me stumped!


(Amurray) #6

In keeping accuracy of forum posts for the future

update: confirmation that video/mp4  mp4 added into apache file in QA only in the last addition.

Scheduling an apache restart to rectify this and will confirm here as soon as I can.