See http://skitch.com/effulgentsia/d7fmi/edit-video-a6wai0sslgs-effulgentsia.

This patch is much more hacky than I would like, but I haven't found a clean way to do it yet without making changes to media or media_internet module. On the one hand, I'm not sure a provider module should be responsible for doing this. On the other hand, different providers may have different needs here.

Comments

aaron’s picture

Status: Needs review » Needs work

seems like that would better go to the media module -- all media could then have a link to the original, and you wouldn't need to do this per provider.

JacobSingh’s picture

@aaron: Any ideas on how to do this?

aaron’s picture

Title: Add a link to the YouTube video below the thumbnail on the media edit form » Add a link to the original media below the thumbnail on the media edit form
Project: Media: YouTube » D7 Media
Status: Needs work » Needs review
StatusFileSize
new5.16 KB

here you go.

aaron’s picture

StatusFileSize
new5.16 KB

oops, need to match up spans...

note we can't use drupal_realpath() for local media, as that returns the system file path, rather than a url. that's why we instantiate the stream wrapper and call getExternalURL().

aaron’s picture

#4: media-original-link-952638-4.patch queued for re-testing.

aaron’s picture

actually I should re-factor that to use file_create_url

aaron’s picture

Project: D7 Media » File Entity (fieldable files)
Version: 7.x-1.x-dev » 7.x-2.x-dev

moving this to the file entity module

aaron’s picture

Status: Needs review » Closed (works as designed)

and actually, now looking at things, there does seem to be a link to the original media rather than a thumbnail. Things have changed since last year I suppose