"Video Not Loaded" with ezMedia attribute and Flash video

Author Message

Hakim Bouras

Friday 09 October 2009 2:52:52 am

Hi,

I have a site built with ez 4.1.3 (with ezFlow) and I am trying to add Flash video to one of my class.

I used the ezMedia attribute, but whenever I try to enter an object in which I have uploaded a flash video, the flash player does not display the video (just a white box), and a right click on it displays : "Video not loaded"

I can access the video file by using the url of the file as it is in the source code of the page.

I tried another test with a Flash object (ezwebin), and I get the same result.

I tried one more test with a "Video Flash Player" object (ezflow) and here it is working.

Any idea what may be wrong ?

Thanks,
Hakim

Gabriel Finkelstein

Friday 09 October 2009 10:27:54 am

Is the src URL like "/content/download/xxx"? I had the same problem. Some browsers don't show the file because "content/download" sends specific headers that force the browser to download the file instead of opening it. You should replace this in the templates (probably override/templates/embed/flash.tpl"):

{concat("content/download/",$attribute.contentobject_id,"/",$attribute.content.contentobject_attribute_id,"/",$attribute.content.original_filename)|ezurl}

With something like this

{$attribute.content.filepath|ezroot}

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 31 2025 06:26:15
Script start
Timing: Jan 31 2025 06:26:15
Module start 'layout'
Timing: Jan 31 2025 06:26:15
Module start 'content'
Timing: Jan 31 2025 06:26:15
Module end 'content'
Timing: Jan 31 2025 06:26:15
Script end

Main resources:

Total runtime0.0146 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0053 588.3750151.2422
Module start 'layout' 0.00530.0031 739.617236.7109
Module start 'content' 0.00840.0047 776.328190.3438
Module end 'content' 0.01310.0014 866.671929.9922
Script end 0.0145  896.6641 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002517.4273140.0002
Check MTime0.00117.6689140.0001
Mysql Total
Database connection0.00074.793310.0007
Mysqli_queries0.002819.467830.0009
Looping result0.00000.275110.0000
Template Total0.00117.610.0011
Template load0.00096.141010.0009
Template processing0.00021.436210.0002
Override
Cache load0.00064.369110.0006
General
dbfile0.00031.952080.0000
String conversion0.00000.055740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs