3

I know since WP 3.6 we've been able to upload and embed various file formats and that the 'Add Media' button effectively implements the correct media embed shortcode for us.

I'm having a problem in WP4.0 using 'Add Media' to embed quicktime (.mov) files. The embed works fine for the other supported video MIME types but I'm not offered 'Embed Media Player' when I try adding a .mov file to a post.

See screen grabs/explanation: Screenshot

See how .mov embed has reverted to a simple hyperlink (recorders) at this page

Does anyone have any suggestions as to why this is, or to a possible fix so I can embed .mov as easily as .mp4 - seems to be the preferred format of the client. For the moment we're having to manually add the [video] shortcode ourselves in the text editor.

How do I check that embed is supported/enabled for .mov?

5

You can try the following:

/**
 * Add support for the QuickTime (.mov) video format.
 */
add_filter( 'wp_video_extensions', 
    function( $exts ) {
        $exts[] = 'mov';
        return $exts;
    }
);

to add the Embed Media Player support for the QuickTime video files.

The default supported video formats are:

mp4, m4v, webm, ogv, wmv, flv

Update:

When I test this I get the Embed Media Player option and following shortcode inserted into the post:

[video width="240" 
       height="180" 
       mov="http://example.com/wp-content/uploads/2014/10/video1.mov"][/video]

Similar for the .avi and .wmv extensions:

[video width="160" 
       height="120" 
       avi="http://example.com/wp-content/uploads/2014/10/video2.avi"][/video]


[video width="1280" 
       height="720" 
       wmv="http://example.com/wp-content/uploads/2014/10/video3.wmv"][/video]
  • Does this work for avi as well. Haven't tested this nor am I able to test it now – Pieter Goosen Oct 21 '14 at 9:00
  • 1
    Good question, maybe I can test it later today @PieterGoosen – birgire Oct 21 '14 at 9:03
  • @PieterGoosen I can confirm that the "Embed Media Player" option shows up after this, but I didn't try to play it since I don't think I got the browser support for these formats. – birgire Oct 21 '14 at 17:05
  • Great, that works. It does seems that you need a special media player to play the files though. – Pieter Goosen Oct 21 '14 at 17:24
  • Nope. Tested .mov video and works using the video shortcodes without the filter. – Brad Dalton May 8 '15 at 19:27
0

Not very beautiful but work for me - just hartcode " type="video/mp4">

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.