Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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?
Comment | File | Size | Author |
---|---|---|---|
#16 | step4_wysiwyg_display_option.jpg | 11.9 KB | Wye Yu |
#16 | step3_display_precedence_order.jpg | 8.85 KB | Wye Yu |
#16 | step2_enabled_displays.jpg | 37.69 KB | Wye Yu |
#16 | step1_manage_file_display.jpg | 71.59 KB | Wye Yu |
#8 | overlay-doesnt-close-when-submit-pressed.jpg | 34.01 KB | littledynamo |
Comments
Comment #1
j.b CreditAttribution: j.b commentedComment #2
littledynamo CreditAttribution: littledynamo commentedI 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.
Comment #3
littledynamo CreditAttribution: littledynamo commentedMoving to media issue queue
Comment #4
Dave ReidCan we get a screenshot of the error? I'm having a hard time pinning down what's actually responsible here.
Comment #5
littledynamo CreditAttribution: littledynamo commentedI'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.
Comment #6
Dave ReidIs 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.
Comment #7
littledynamo CreditAttribution: littledynamo commentedYes, 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
Comment #8
littledynamo CreditAttribution: littledynamo commentedAnother 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.
Comment #9
littledynamo CreditAttribution: littledynamo commentedI've just noticed that there's a Javascript error when I try to submit the form:
Also some Javascript warnings:
Comment #10
drakythe CreditAttribution: drakythe commentedI 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.
Comment #11
Devin Carlson CreditAttribution: Devin Carlson commentedThis 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.
Comment #12
littledynamo CreditAttribution: littledynamo commentedIt 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.
Comment #13
drakythe CreditAttribution: drakythe commentedOkay 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?
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.
Comment #14
Countzero CreditAttribution: Countzero commentedStumbled on the same issue, and made it work by installing mediaelement.
Comment #15
rcodina CreditAttribution: rcodina commentedI 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
Comment #16
Wye Yu CreditAttribution: Wye Yu commentedI 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 .
In the tab for "Default", do this in the following sections:
Enabled displays
Tick the options for "YouTube Video" and "YouTube Preview Image".
Display precedence order
YouTube Video (first order)
YouTube Preview Image (second 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".
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.
Comment #17
srikanth.g CreditAttribution: srikanth.g commentedI 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?
Comment #18
Dave Sandilands CreditAttribution: Dave Sandilands commentedI'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
Comment #19
Devin Carlson CreditAttribution: Devin Carlson commentedThis works as designed as outlined in #11.
Comment #21
sharlon CreditAttribution: sharlon commentedHello, 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:
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.