Download & Extend

Module looks in http://mysite.com/sites/default/files/files/ directory for videos.

Project:FlashVideo
Version:6.x-1.5-rc5
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

I have spent much time with the documentation available and I have always been confused as to whether the intention is to have us place Player.swf and our video directories in a root/files directory or if they are all supposed to be in sites/default/files. Well, I was working with the former and then tried the latter and I'm getting a blank page both ways.

Because, as Firebug reveals, the module is apparently trying to find Player.swf at sites/default/files and my videos directory (containing subdirectories for "original" and converted" files) in sites/default/files/files. No matter how I configure the FFMPEG settings for the file paths, relative to root or "files" it doesn't change.

<embed width="450" height="337" border="0" flashvars="file=http://mysite.net/sites/default/files/files/videos/converted/intro_0_115.flv&amp;image=http://mysite.net/sites/default/files/files/videos/converted/intro_0_115.jpg&amp;rotatetime=3&amp;autostart=false" quality="high" allowfullscreen="true" wmode="window" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" src="http://mysite.net/sites/default/files/Player.swf" allowscriptaccess="always" name="flashvideo">

Here's the kicker, I created a files directory within my sites/defaults/files directory and moved my videos directory into it (Player.swf remained in sites/default/files). Still got a blank page.

I created a new Page, using core Upload to upload .mov, successful conversion for video and thumbnail. [video] tag in the body of the page. Using JW Player (version 5.2 I believe).

Comments

#1

The player.swf file should be in the sites/default/files folder unless you specify otherwise in the Flashvideo settings. Have you checked the Flashvideo settings for your video content type? Pay special attention to the flash player name. You should just be able to put player.swf in there but for some reason, I have to have 'sites/default/files/player.swf' for mine.

Now, looking at the code you have up above...I don't see any big problem with it...the player should be working. But have you tested the URL's in there?

What happens when you directly go to: http://mysite.net/sites/default/files/Player.swf ?? You should see the dash player template come up with nothing in it.

If you don't see the player come up, then it's not in the right place hence the blank screen. Again, check your Flashvideo settings for your content type to make sure that the path matches the actual location of the player.swf file.

#2

Ok, I have the player.swf in the right place with the full path entered in the settings, I am able to see it when I access it directly.

I have "Output Directories reference from Drupal root" checked and the full path of "sites/default/files/videos/converted" and sites/default/files/videos/original" entered in the spaces below. All of this is in my Page content type settings within the FlashVideo module settings. Still not video is playing in my page, blank white screen.

Still doesn't make sense that the <embed> seems to be looking in sites/default/files/files since there is no such directory (but still didn't work when I created one as a test).

#3

Can you PM me your site information?...when you put [video] in a node...look at the source code (like what you have above) and send it to me so I can have a look.

#4

I will as soon as I can, thanks for the help.

#5

Development:

First chance I've had to check back with my site on this issue. I accessed the node I am using for testing and discovered that the player is actually showing up now, but it doesn't play the video. I instead see this message inside the player window when I attempt to play the video:

Video not found or access denied: http://mysite.com/sites/defaults/files/files/videos/converted/intro_0_115.flv

For the hell of it, I flushed all caches and ran cron. After cron, I saw this error message:

* The selected file sites/default/files//videos/converted/intro_0_115.flv could not be uploaded, because the destination sites/default/files/converted/intro_0_115.flv is not properly configured.
* The selected file sites/default/files//videos/converted/intro_0_115.jpg could not be uploaded, because the destination sites/default/files/converted/intro_0_115.jpg is not properly configured.

Note the "//" in the file paths.

Ok, so I checked the permissions and they seemed fine. So I then just deleted my test node and deleted my .flv and .jpg in the /converted directory. I then created a new node, received a rename error but I could now see the video in the player on the page. Last thing I needed to do was re-check the box for "Output Directories reference from Drupal Root" and now all seems to be well.

Checked the node with firebug one more time and the /files/files/ thing has gone away too.

So I am thinking the problem must have been solved by flushing caches and running cron which didn't occur to me before because I had the "Convert videos immediately" box checked and though I didn't need to wait for or run cron before viewing the video?

Anyway, it seems to be working now. Hopefully this helps someone else down the road.

#6

Update:

As far as I know, things seem to be working. However, everytime I run cron I get the following error messages:

* The selected file sites/default/files//videos/converted/intro_121.flv could not be uploaded, because the destination sites/default/files/converted/intro_121.flv is not properly configured.
* The selected file sites/default/files//videos/converted/intro_121.jpg could not be uploaded, because the destination sites/default/files/converted/intro_121.jpg is not properly configured.
* The selected file sites/default/files//videos/converted/intro_121.flv could not be uploaded, because the destination sites/default/files/converted/intro_121.flv is not properly configured.
* The selected file sites/default/files//videos/converted/intro_121.jpg could not be uploaded, because the destination sites/default/files/converted/intro_121.jpg is not properly configured.

#7

Sounds like a permission issue. What permissions do you have set on that folder?

#8

For videos and videos/converted I have drwxrwxrw. Permissions on the files themselves shouldn't matter, right? Those appear to be -rw-r--r--.

nobody click here