File attribute: .flv [SOLVED]

Author Message

Lo' F.

Tuesday 12 October 2010 3:52:13 pm

Hi again.

I created a new class "video-content" with an attribute file "video" where to upload .flv files.

Installed Flowplayer and created an override for the full view where I inserted the script to play to video.
File succesfully uploaded and the player seems to work fine, but the problem is that when I load the page I get the message:

"

200, Stream not found, NetStream.play.StreamNotFound, clip: '[clip], '/var/ezwebin_site/storage/original/video/codeidentifieroftheuploadedvideo.flv''

"

Also if I try to open the video by entering its path in the address bar of the browser I get a Forbidden warning: "You do not have permission to access this document".

It seems to me I need to set the permission to the file but it is uploaded as file attribute and I don't know the way to do that, it's not in the media library.

Any idea why this might be happening and what do?

Thanks a lot!

loredanaebook.it

Heath

Tuesday 12 October 2010 3:59:20 pm

Hello Lo' F,

Sounds like you have a web server configuration issue.

If you put the video url in a browser and can't access the file

and it's giving a web server error page chances are you have a web server configuration issue.

Cheers,

Heath

Brookins Consulting | http://brookinsconsulting.com/
Certified | http://auth.ez.no/certification/verify/380350
Solutions | http://projects.ez.no/users/community/brookins_consulting
eZpedia community documentation project | http://ezpedia.org

Lo' F.

Wednesday 13 October 2010 1:04:13 pm

"

Sounds like you have a web server configuration issue.

"

Thank you Heath. You are absolutely right.. that's the issue.

I added the .flv mime type to the server configuration setting (/etc/mime.types) this way..

flv-application/octet-stream
video/x-flv                    flv

but the problem still lingers.

Also tried to add this line to .htaccess..

AddType video/x-flv .flv

but no result.

Of course, restarted the vps (..Linux server) after the changes..

loredanaebook.it

Lo' F.

Sunday 17 October 2010 12:31:19 pm

I added the .flv extension in the .htaccess file as follows..

<FilesMatch "(^index\.php|favicon\.ico|index_treemenu\.php|\.(gif|jpe?g?|png|flv|css|js|swf|html?)|var(.+)storage.pdf(.+)\.pdf)$">
order allow,deny
allow from all
</FilesMatch>

...

RewriteRule !(\.(gif|jpe?g?|png|flv|css|js|swf|html?)|var(.+)storage.pdf(.+)\.pdf)$ index.php

and now it works!

loredanaebook.it

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.