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.

eZ debug

Timing: Jan 18 2025 03:11:09
Script start
Timing: Jan 18 2025 03:11:09
Module start 'layout'
Timing: Jan 18 2025 03:11:09
Module start 'content'
Timing: Jan 18 2025 03:11:09
Module end 'content'
Timing: Jan 18 2025 03:11:09
Script end

Main resources:

Total runtime0.6577 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0059 587.9141152.6250
Module start 'layout' 0.00590.0031 740.539139.4531
Module start 'content' 0.00900.6468 779.9922563.2109
Module end 'content' 0.65580.0018 1,343.203116.1641
Script end 0.6576  1,359.3672 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.5056160.0002
Check MTime0.00140.2061160.0001
Mysql Total
Database connection0.00050.078010.0005
Mysqli_queries0.594890.4482600.0099
Looping result0.00050.0761580.0000
Template Total0.626095.220.3130
Template load0.00210.318720.0010
Template processing0.623994.871520.3120
Template load and register function0.00010.013810.0001
states
state_id_array0.00110.160010.0011
state_identifier_array0.00130.198120.0007
Override
Cache load0.00180.2810400.0000
Sytem overhead
Fetch class attribute can translate value0.00050.078620.0003
Fetch class attribute name0.00100.147560.0002
XML
Image XML parsing0.00100.148920.0005
class_abstraction
Instantiating content class attribute0.00000.002980.0000
General
dbfile0.00170.2543230.0001
String conversion0.00000.002040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
11content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezxmltags/quote.tpldatatype/ezxmltext/quote.tplextension/ezwebin/design/ezwebin/override/templates/datatype/ezxmltext/quote.tplEdit templateOverride template
1content/datatype/view/ezxmltags/emphasize.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/emphasize.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 28
 Number of unique templates used: 9

Time used to render debug report: 0.0001 secs