Forums / Developer / "Video Not Loaded" with ezMedia attribute and Flash video

"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}