I'm using flowplayer as video player for .flv files, using the drupal module flowplayer.
I found that the path passed to player is relative, so if we aren't on url top level the video doesn't works.
I propose you add an slash before to the relative path.
Consider it or correct me. Thanks.
| Comment | File | Size | Author |
|---|---|---|---|
| #31 | video_error_settings.tar_.gz | 935.74 KB | schultetwin |
| #1 | video_helper.inc_.955656.patch | 661 bytes | daniels____ |
Comments
Comment #1
daniels____ commentedThe patch.
Comment #2
threewestwinds commentedI've just encountered the same problem, and can confirm that the patch fixed the issue for me as well. It seems simple enough - does anyone have a reason why we shouldn't just use the absolute path in here?
Comment #3
hypertext200Comment #4
dmurray commentedWhen I try and apply this patch I get this error:
any ideas?
Comment #5
threewestwinds commentedCan you specify what version of the module you're trying to apply it to? The error you posted suggests that the patch didn't apply because the base file (video_helper.inc) has changed. I'll reroll the patch for you, once I know what version you want it for.
You can also try to do the patch manually - search video_helper.inc for the line
$video->url = (!valid_url($converted->filepath)) ? file_create_url($converted->filepath) : $converted->filepath;
and replace ": $converted->filepath;" with ": '/' . $converted->filepath;"
Comment #6
dmurray commentedExcellent, thanks for the help. I was using the latest dev version of the module. After making the changes to video_helper.inc i no longer get the error and the video works. This should be committed to the svn. Thanks for your help.
Comment #7
parasox commentedThis patch fixed a similar problem I was having when using Video combined with the Display Suite (http://www.drupal.org/project/ds) module.
The problem was that Videos would show in a teaser, but wouldn't show in a full node. If I dragged the Video field into the Display on a Full Node, it would give me the 200 stream error. This path resolved that issue for me, thanks!
Comment #8
ronline commentedProblem is showing in 6.x-4.1-rc6, patch fix the issue.
Comment #9
daniels____ commentedNow I see that use base_path() is better than put '/' directly. This is for flexibility reasons.
Comment #10
tomfacts commentedHello, I'm very new to Drupal. I have this same error 200 issue.
Where does this patch get applied?
Thanks for tracking this down.
Comment #11
parasox commentedtom, put the patch in the same directory as your "video_helper.inc" file and then run "patch < video_helper.inc_.955656.patch"
I forget if the inc file is in the main module directory or in like an "includes" subfolder.
Comment #12
mkdi commentedI have the same issue but when I checked the error in detail, the path that is included in the error is actually the path of the original file and not the converted file. Is this a normal behavior or am i missing some thing? I'm using 6.x-4.2-alpha2 with flowplayer3 module.
Comment #13
hypertext200@mkdi are you using a fresh install or upgrade?
Comment #14
mkdi commentedheshan.lk, I'm using a clean install
Comment #15
hypertext200Hmm, not sure about the issue, for me its working fine. Just have a look at the watchdog and try to debug.
Comment #16
mkdi commentedCould you please tell me what SWF, and Video modules you are using that works fine together.
Comment #18
daniels____ commented@mkdi, you said that you have the same error, if you look at rendered HTML, the path passed to video player is accesible from your browser?
Comment #19
bhosmer commentedI have the same issue as well. The filename that gets added contains the % symbol when I view the source.
I also can't seem to get the patch to work no matter what version of the module I use. It always ends with a failure on line 51.
Interestingly enough, the bug doesn't appear when I use video on my local MAMP installation, but when I use it with my webenabled account the filename gets changed for some reason to contain %'s. Hence the player can't find the file. The file exists in my files directory as my original file name.
Comment #20
psmx commentedAfter upgrading from 6x-4.1 to 6x-4.2alpha2 same issue here: Wrong path gets handed to flowplayer. Just the filepath gets handed (sites/default/files), no folders or filename. Downgrade to 6x-4.1rc6 fixed the issue.
Comment #21
rv0 commentedWell, as the current patches didn't work and I didn't have time to delve thru the code for a decent fix (just launched a site, had to switch video player due to circumstances, the error popped up on live site: not good)
This is how I fixed it:
change (line 111) in video_helper_inc:
$thumbnail->swfthumb = $thumbnail->filepath;to
$thumbnail->swfthumb = substr($thumbnail->filepath,19);There's probably a much better way to do this, but it works and that's what counts for me now
Comment #22
beshox commentedyou may made my mistake, I faced same error message , after spending some time, i discovered that i forget to assign the file field at "Display Field" to "swftools or flowplayer" instead of generic files, after that it worked good.
Comment #23
hypertext200Comment #24
Roritharr commentedI still encounter this exact problem in Video 4.2 6.x
Comment #25
Chris Durham commentedSame here
Comment #26
kdmarks commentedSame here.
Comment #27
Jorrit commentedCould you post the HTML snippet of the player code?
Comment #28
schultetwin commentedI'm having the same problem. As a note, I do not have ffmpeg on the server, so I'm just using flv videos. I'm on the dev version (as of today) of video. Here is my html code:
<div id="video-plain" style="width:640px;height:504px;" class="flowplayer flowplayer-processed"><object width="100%" height="100%" id="video-plain_api" data="/sites/all/modules/flowplayer/flowplayer/flowplayer.swf" type="application/x-shockwave-flash"><param name="allowfullscreen" value="true"><param name="allowscriptaccess" value="always"><param name="quality" value="high"><param name="cachebusting" value="false"><param name="bgcolor" value="#000000"><param name="flashvars" value="config={"playlist":[{"url":"http://dev.ejrst.net/sites/default/files/","scaling":"fit"},{"url":"","autoPlay":0,"autoBuffering":1,"scaling":"fit"}],"clip":{"scaling":"fit"},"playerId":"video-plain"}"></object></div>This is the error that is displaying:
200, Stream not found, Netstream.Play.Streamnotfound, clip '[clip: http://dev.ejrst.net/sites/default/files/]'
I'm not sure why the clip is point to my sites directory, but that is the full error.
Comment #29
schultetwin commentedAh, so I found the first error. Without ffmpeg, I have not thumbnails, so that causes an error. If I correct for that, using the method described here, I get the following the same error upon starting the video, except now its: (different url)
200, Stream not found, Netstream.Play.Streamnotfound, clip '[clip: http://dev.ejrst.net/content]'
Comment #30
Jorrit commentedI am unable to reproduce the error. Could you post your video module settings, field settings and the settings associated with the uploaded file? Screenshots of the screens are fine too, whatever is easier for you.
Comment #31
schultetwin commentedAll necessary files are attached. For the field settings page, I just gave you the unformatted html. It should load fine, and that way you can actually see the full page, not just the screenshot.
As a reminder, on this system, I do not have ffmpeg.
Thanks
Mark Schulte
Comment #32
Jorrit commentedWhen I enter the settings like on your screenshots, I get the following error after saving the node:
This is because you have the "Enable video conversion." on in your field settings.
I also have some other questions:
Comment #33
schultetwin commentedSo, after disabling "enable video conversion" on the field settings, I'm able to upload and play flv. I'm not sure what you mean by "presets", but I basically kept all the settings at default.
Thanks for the help!
Comment #34
Jorrit commentedPresets is one of the tabs in the administration panel. I was wondering if you had any presets selected.
Is your problem with the bad file path solved?
Comment #35
schultetwin commentedI only have flashed enabled for presets.
The problem is solved (I'm not sure what I should mark this thread as, fixed?). Thank you for your help.
Comment #36
Jorrit commentedDoesn't really matter. I am very glad that your problem has been solved.