When adding a dailymotion video in WYSIWYG through media
I get No video with supported format and MIME type found.
I have the latest development release of media installed and latest media dailymotion installed.

When adding a dailymotion video in a media field, it works correctly,

Anyone have a solution?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

j.b’s picture

Issue summary: View changes
littledynamo’s picture

I am experiencing the same issue when adding a Media:Youtube video via the WYSIWYG. Using the following versions:

- Media 7.x-2.0-alpha3+38-dev
- File Entity 7.x-2.0-alpha3+9-dev
- Media: Youtube 7.x-2.0-rc4

I think we should move this issue to the Media issue queue. Looks more likely to be an issue with Media or File Entity, since they're the common denominators.

I've also noticed that when adding Youtube videos via a File field, it displays perfectly when using 'Rendered File' as the display format (in Manage Display). But when I choose 'Video' as the display format, I receive the the unknown mime type error.

littledynamo’s picture

Project: Media: Dailymotion » D7 Media
Version: 7.x-1.1 » 7.x-2.x-dev

Moving to media issue queue

Dave Reid’s picture

Can we get a screenshot of the error? I'm having a hard time pinning down what's actually responsible here.

littledynamo’s picture

I've uploadeded a screenshot. The same error shows on the front end.

There doesn't appear to be any hints in the DBLog as to what the problem might be.

Dave Reid’s picture

Is that item a <video> tag? If so it looks like you'd need to change the default configuration for the 'Video' file type to make sure that some kind of Dailymotion player is attempted before the HTML5 video formatter.

littledynamo’s picture

FileSize
108.83 KB

Yes, it does look like an HTML 5 video. In the source I have the following:

<video class="media-element file-default" controls="controls" data-file_info="%7B%22fid%22:%22256%22,%22view_mode%22:%22default%22,%22fields%22:%7B%22format%22:%22default%22%7D,%22type%22:%22media%22%7D"><source src="http://www.youtube.com/watch?v=aE_gN8fA2xE" type="video/youtube"></source></video>

I've attached an image showing my video settings. Youtube has precedence over HTML5.

Also, video/youtube does exist in the list of mimetypes at admin/structure/file-types/manage/video

littledynamo’s picture

Another possibly noteworthy point is that the overlay doesn't close when submit is clicked. I can see the video appearing in the WYSIWIG underneath but the overlay doesn't close. Multiple clicks of 'submit' result in multiple videos being added. I have to click 'cancel' to get the overlay to close.

littledynamo’s picture

I've just noticed that there's a Javascript error when I try to submit the form:

NS_ERROR_FAILURE: Failure

...;M.setStartAt(G,1);M.setEnd(I.startContainer,I.startOffset);var N=e.extend(K,f.$...

ckeditor.js line 136

Also some Javascript warnings:

Specified "type" attribute of "video/youtube" is not supported. Load of media resource http://www.youtube.com/watch?v=6R5SytoEbjs failed.
All candidate resources failed to load. Media load paused.
drakythe’s picture

I get this as well when trying to use Views to render a YT video with the Video formatter, rather than the Rendered file entity. Same setup.

Devin Carlson’s picture

Project: D7 Media » File Entity (fieldable files)
Category: Bug report » Support request
Status: Active » Fixed

This is a browser error caused by attempting to render an unsupported video file using the browser's built-in HTML5 media player. See https://support.mozilla.org/en-US/questions/977344.

This is most likely an issue with whatever media provider module that you are using or your current file displays configuration. While the HTML 5 video tag formatter provided by File Entity could limit itself to only a select list of MIME types, the issue is that HTML 5 doesn't declare a list of minimum supported formats, so formats vary between browsers.

Moving to the File Entity queue as it handles file displays and declares the Video formatter.

littledynamo’s picture

Status: Fixed » Active

It doesn't work for me in any browser, though. Firefox 24.2.0, Chrome 33.0.1750.146 m, IE9.

Also, it works fine when using a media field. The problem seems isolated to the WYSIWYG.

drakythe’s picture

This is most likely an issue with whatever media provider module that you are using or your current file displays configuration. While the HTML 5 video tag formatter provided by File Entity could limit itself to only a select list of MIME types, the issue is that HTML 5 doesn't declare a list of minimum supported formats, so formats vary between browsers.

Okay so this I get. I have maybe a silly question though, where does one configure the html5 video tag formatter? Or am I misunderstanding and this is set in the module code itself?

The problem seems isolated to the WYSIWYG

Also, just so it doesn't get lost, this is also an issue on Views when trying to render a media field with the Video format, rather than the Rendered Entity format.

Countzero’s picture

Stumbled on the same issue, and made it work by installing mediaelement.

rcodina’s picture

I also reproduce the error. I just made a clean install of Drupal 7.28 and installed these modules:

File entity 7.x-2.0-alpha3
Media 7.x-2.0-alpha1
Media Youtube 7.x-2.0-rc4

Then I added a field of type "File" to article content type. New field options are the following:

a) Widget type: Media FIle Selector
b) Allowed remote media types => Video
c) Allowed URI schemes => YouTube

Finally I created one article with a youtube video. Then:

i) If I go to "Manage display" and select "Video" format => Doesn't work: In Firefox appears "No video with supported format and MIME type found".

ii) If I go to "Manage display" and select "Rendered file" => Works like a charm

Remark: I haven't enabled any WYSIWYG

Wye Yu’s picture

I too had the same error on WYSIWYG but have managed to solve this issue by configuring the file types for Video.

Below are the Drupal core/module versions which I am using.

Drupal Core 7.31
File entity 7.x-2.0-alpha3
Media 7.x-2.0-alpha3
Media Youtube 7.x-2.0-rc4

First navigate to the "manage file display" for Video --> admin/structure/file-types/manage/video/file-display .

Manage file display for Video

In the tab for "Default", do this in the following sections:

Enabled displays
Tick the options for "YouTube Video" and "YouTube Preview Image".

Tick the YouTube Video and YouTube Preview Image option

Display precedence order
YouTube Video (first order)
YouTube Preview Image (second order)

Display precedence order

Then click the "Save configuration" button.

Now in the WYSIWYG, click on the "Add media" button.

Enter the desired YouTube video URL and click "Submit".

The YouTube preview image should now be displayed (otherwise ensure that "Default" is selected as the "Display as" option under "OPTIONS".

WYSIWYG display option

Click "Submit" again and you should now see the YouTube preview image in the WYSIWYG.

Save the page/node and you can now play the YouTube video.

srikanth.g’s picture

I am using CCK and filefield modules to upload mp4/flv files,but i am getting the same error "No video with supported format and MIME type found". I tried many players like jwplayer,spider video player,flow player,video.js..but No luck to play the video. Plss help..What i am missing some configuration?

Dave Sandilands’s picture

I'm grateful to Wye Yu (see comment #16) for helping me resolve my issue.
I would just add that you should also remember to go here : Administration » Configuration » Content authoring » Text formats and check the box Converts Media tags to Markup

Devin Carlson’s picture

Status: Active » Fixed

This works as designed as outlined in #11.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

sharlon’s picture

Hello, I'm also having the same problem.
I FOUND THE FOLLOWING SOLUTION - DRUPAL 7:

types of files (mp4, 3gp ...) are not supported by web browsers.
Browsers support files like: webm and ogg.
Make the conversion of files and test.

MY SOLUTION WAS AS FOLLOWS:

1. Go in the menu structure
2. type of content
3. Article
4. manage fields
5. create a field with the following information:
5.1 label name: Video
5.2 field type: file
5.3 Widget: file.
6 Save the settings

7 go to the Edit label "video"
8 under "File extensions allowed"
9 write: webm
10 Save settings

11 Go to the Content menu
12 add a content of the article type
13 Upload a video file with extension webm
14 Save settings

The page with the video content will function normally.

##################################################

SECOND SOLUTION TO THE PROBLEM:

1 I have installed CKEditor module.
2 Menu Content -> add contents of the article type
3 Select the option Full Html
4 click on the "source code"
5 added the code below:
Example:

<Div>
<Video controls = "controls" height = "250" width = "250">
<Source src = "http: //localhost/drupal2/sites/default/files/field/video/David_Copperfield.webm" 
type = "video/webm"> </ source> </ video>
</ Div>

6 Save the settings

Work normally in web browsers
-------------------------------------------------- -----------------------------
I hope I have que Helped in some way.
I Send you a hug warm full of energy.