Closed (fixed)
Project:
Embedded Media Field
Version:
6.x-1.x-dev
Component:
Embedded Video Field
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
27 Nov 2008 at 01:45 UTC
Updated:
1 Jun 2010 at 16:00 UTC
Jump to comment: Most recent file
Comments
Comment #1
sorahn commentedI'm bumping this because it's still happening. And no one has even looked at this. I can try and write up a patch, but i'm having a hard time following where the code for the url generation for custom video embedding comes from.
Comment #2
aaron commentedwe'll get to it when we get to it. definitely not critical, as custom url support has always been experimental.
Comment #3
aaron commentedif you want to try to write a patch, look in sites/all/modules/emfield/contrib/emvideo/providers/zzz_custom_url.inc to start with.
Comment #4
sorahn commentedWell, instead of just custom urls, what about just embedding your own videos? So maybe split custom videos into "local embedding and custom urls for off site"
Not sure, but the reason i thought it was critical is because it doesn't work with local ones, which i figured would work before third party ones.
I'll look through that file and see if i can figure out where the url is being passed into the embed code generator and why it's removing the domain if it's a local domain.
Comment #5
sorahn commentedDoing a little bit of expirementing...
If you embed a video from a site that isn't the one hosting drupal, it works fine.
However, if i host the same file locally. and do the embed, it cuts the domain and the drupal folder out of the url.
I looked through the whole zzz_whatever_file.inc and none of those functions actual do the URL parsing to decide what provider it should be.
It looked like emfield_parse_embed did the original parsing of the url, but i had a hard time finding where it would split the url and remove the domain because it's local.
And i do think this should be critical for local files, because as it stands there isn't another other CCK node to embed local videos.
Comment #6
aaron commentedOh, heavens, don't use emfield for local video unless you're helping to experiment! There are currently a couple of other better solutions, among them notably FileField + jQuery Media (screencast at http://drupaltherapy.com/node/50). That's what I used at http://youdrup.com/ (as well as for some various client work).
Comment #7
jerdavisAt least part of the issue here is the fact that there are no break; statements in the theme function's switch. This patch corrects that allowing the correct embed code to be used for the file types referenced.
Comment #8
aaron commentedgood catch, @jerdavis -- committed that. thanks!
the rest of this should have been fixed some time ago. please re-open if you still have this problem.