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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

junedkazi’s picture

FileSize
5.75 KB
5.75 KB

Attaching field settings and display mode

Dave Reid’s picture

In 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.

junedkazi’s picture

So 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.

junedkazi’s picture

@Dave you were very quick. Before I could post my next response you had the same answer. So does this qualify as a bug ?

Dave Reid’s picture

@junedkazi: Was this a fresh install of both Media and Media: Youtube, or an upgrade from 1.x?

junedkazi’s picture

I 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

Dave Reid’s picture

Status: Active » Needs review
FileSize
13.27 KB

This 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).

aaron’s picture

Status: Needs review » Reviewed & tested by the community

This works really well.

junedkazi’s picture

It works perfectly fine. SO RTBC from me as well.

radiobuzzer’s picture

I confirm that this patch works. Fix should be given a priority as it breaks the recommended version alpha2 as well.

Devin Carlson’s picture

Status: Reviewed & tested by the community » Needs review
FileSize
27 KB

#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.

Devin Carlson’s picture

Status: Needs review » Fixed

Committed #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.

Status: Fixed » Closed (fixed)

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

dureaghin’s picture

Committed #11 works for me. Thanks.