If I try to use a relative path to a local video file on my web site using the "custom video provider" It doesn't work...

eg: In my CCK field I say my video is at files/videos/myvid.flv.

When i load the page and try to play the video (and watch in the firebug NET tab) it's making a call to freevideocoding.com/files/videos/myvid.flv Which of course doesn't work.

What am I doing wrong? What can I do to do this right?

If I put in the whole path e.g. http://mysite.com/files/videos/myvid.flv it works just fine. But that's not condusive to working in a dev environment, then "going live with it"

CommentFileSizeAuthor
videoerror.jpg92.5 KBvordude

Comments

vordude’s picture

Am I wrong in thinking that this module would be the best for embeding videos that are local to my web server?

aaron’s picture

Title: local video files » better support for local video files
Assigned: Unassigned » aaron
Category: support » feature
Status: Active » Postponed

the support for local videos is rudimentary and experimental at this point. there are definitely better current solutions, such as file field, media mover, flash video, media field, asset, etc.

i do want to polish this up a little better though. not for it to work by itself, but for it to work in conjunction with another module. my initial thoughts are to have it tie in more automatically with jquery media, which is probably the easiest move.

after the port to d6 though.

xurizaemon’s picture

This issue persists in D6 as well.

If a video is uploaded using upload.module to eg http://example.org/sites/example.org/files/video.mp4 and this URL is copied from the upload widget to emvideo URL field, then emfield will record the URL as a relative path.

When the video is loaded, the video path shows underneath it:

(zzz_custom_url ID: sites/example.org/files/video.mp4)

This fails to work because the resulting embed code points instead to node/1/sites/example.org/files/video.mp4

If emvideo does remove "http://example.org" from the URL, it should avoid removing the first (slash) character of the path when doing so.

UPDATE: Above comments probably not relevant to this issue, although the reference to freevideocoding.com is also in emfield/contrib/emvideo/providers/zzz_custom_url.inc - will test and see if this issue persists; I'm seeing it on a live site with the current release of emfield, but not on a test site with current CVS version of emfield for D6. Please ignore me - for now ;)

protoplasm’s picture

I'm having the same problem in D6. I think it's a permissions issue, but I haven't looked that closely into it yet. If I place the .mp4 in a spot in the website that I could access via URL outside the website, like a third party video, it works famously well. In fact, so well, I really am hoping this issue can be addressed in this module. If I place the .mp4 where I want to keep it under the protection of Drupal permissions, it clams up and gives the black screen of buffering look. Since I need this tutorial to be for my moderators only, I am between a rock and a hard place. I'm subscribing so I can follow any progress with local video. In the meantime, I'm going to have to try something else. Great module. Thanks for all the efforts.

protoplasm’s picture

The solution to my problem regarding serving moderators private tutorials was to just .htaccess deny from all and allow from my moderator's IPs in a different domain on my server. It was just really easy that way--took only seconds to do. Since I don't want my bandwidth from being used by anonymous visitors, I was hoping to get the videos for authenticated users to work from a subdirectory in my files/. The odd thing is that sometimes it seemed to work and sometimes it didn't. I am beginning to think it is related to the automatic alias feature. If I manually name the path or use the node/#### then it works locally! And very well, I might add. I looked at all the other solutions, and honestly, embedded media field really is the best solution for me because there really isn't all that stuff associated with setting up the others, fees, branding, flash not working on iphone...so I hope you can address the local videos for D6 because it really is like one-stop shopping. A great module. Thanks again.