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.
After #1748952: Add simple HTML5 file field formatters for <audio> and <video> and in alpha2 release only I see this issue. IF I revert to alpha 1 it works fine.
SO in alpha 2 it is trying to run the internet source like youtube/vimeo etc through the video tag and video tag does not support "video/youtube" as mime source. Same is the case with vimeo.
I am attaching some screenshots as well.
Comment | File | Size | Author |
---|---|---|---|
#11 | 2073001-11-file-displays-weight.patch | 27 KB | Devin Carlson |
#7 | 2073001-file-displays-weight.patch | 13.27 KB | Dave Reid |
#3 | file-entity-video-display.png | 15.79 KB | junedkazi |
#1 | display-mode.png | 5.75 KB | junedkazi |
#1 | display-mode.png | 5.75 KB | junedkazi |
Comments
Comment #1
junedkazi CreditAttribution: junedkazi commentedAttaching field settings and display mode
Comment #2
Dave ReidIn your 'Manage file display' settings for the Video file type, you should order the file formatters for Youtube or your more specific types of remote media *higher* than than the Video formatter. We might need to check the default settings of Media: Youtue or oEmbed to ensure their default configs follow this behavior.
Comment #3
junedkazi CreditAttribution: junedkazi commentedSo on further debugging I noticed that the display order was causing the issue. SO if I move video right at the bottom then the internet source videos work fine and load in an iframe. But if I keep it right at the top then it tries to load in hrml5 format.
I believe we should have some kind of a check to check the source/mime type.
Comment #4
junedkazi CreditAttribution: junedkazi commented@Dave you were very quick. Before I could post my next response you had the same answer. So does this qualify as a bug ?
Comment #5
Dave Reid@junedkazi: Was this a fresh install of both Media and Media: Youtube, or an upgrade from 1.x?
Comment #6
junedkazi CreditAttribution: junedkazi commentedI have been running dev version of media/file entity/youtube for a while. But after the alpha release I decided to move to alpha release as it is much more stable.
Currently I am running
Media 7.x-2.0-alpha1
Media: YouTube 7.x-2.0-rc3+8-dev
File entity 7.x-2.0-alpha2
Comment #7
Dave ReidThis should at least fix the default ordering errors by putting the Audio and Video file formatters *last* for the relevant file types. Also removes some un-relevant file formatters for some file types as well (no export for audio and video on document file types).
Comment #8
aaron CreditAttribution: aaron commentedThis works really well.
Comment #9
junedkazi CreditAttribution: junedkazi commentedIt works perfectly fine. SO RTBC from me as well.
Comment #10
radiobuzzer CreditAttribution: radiobuzzer commentedI confirm that this patch works. Fix should be given a priority as it breaks the recommended version alpha2 as well.
Comment #11
Devin Carlson CreditAttribution: Devin Carlson commented#7 works as advertised but I think that I would go as far as removing all of the un-relevant file formatters and ordering all of the relevant formatters last.
Comment #12
Devin Carlson CreditAttribution: Devin Carlson commentedCommitted #11 to File entity 7.x-2.x after testing it again to confirm that it fixes the issue as the RTBC patch in #7 did while removing the remaining irrelevant formatters.
Comment #14
dureaghin CreditAttribution: dureaghin commentedCommitted #11 works for me. Thanks.