eZ Community » Forums » General » Can't get the Media Datatype to work
expandshrink

Can't get the Media Datatype to work

Can't get the Media Datatype to work

Tuesday 19 June 2007 1:56:17 pm - 10 replies

I downloaded the Media Datatype for 3.8.8 and I am able to successfully upload videos. Although they don't play, at all. Neither from the admin nor from the customer side. The files in question are .wmv files for Windows Media Player

When I pull up the page in question it shows the video object with the controls, but it won't play. When I right click and click on the object and select Error Details I get the following:

Windows Media Player cannot find the file. If you are trying to play, burn, or sync an item that is in your library, the item might point to a file that has been moved, renamed, or deleted.

If I right click and select properties the location is the following:

[...]/content/download/82/308/pptoverview.wmv

Which if I paste directly into the address bar does not work. The file is uploaded I checked relavant directories.

Any Help?

Thanks,
Jason

Tuesday 19 June 2007 2:08:56 pm

Check that the file is actually uploaded to the var directory.

If ( $fileOnServer == false )
It could be upload limit in ez / php / apache or even permission problem;
Else
Post the path it was supposed to have here and I / someone else can try to figure it out;

Fatal Error
XML did not validate on line 10: 'Writing everything in code is fun</joke>'

Tuesday 19 June 2007 2:13:37 pm

I've confirmed that the following file exists only after I upload the wmv file within the admin section:

./var/shop_site/storage/original/video/706af36ab93aa24944611ed990d69d4e.wmv

But it cannot be accessed based off of it's attempt as:

[...]/content/download/82/308/pptoverview.wmv

Tuesday 19 June 2007 2:32:43 pm

If you open the content/download url in you browser, what do you see ?
If this is a ez publish permission problem you should see it there.

Tuesday 19 June 2007 2:37:49 pm

I get a 404 File not Found

Tuesday 19 June 2007 2:42:12 pm

apache or ez error ?

Tuesday 19 June 2007 2:47:22 pm

It's an Apache 404 error

Tuesday 19 June 2007 2:54:42 pm

Haven't had any problems like this myself, so try to enable DebugOutput and DebugRedirection and see where it fails

Tuesday 19 June 2007 3:01:28 pm

I am using a method of removing the index.php reference from the URL. I am using the httpd.conf method though so I don't believe that a mod_rewrite rule could be interfering since there weren't any additional rules to add.

Is there any chance that it is causing an issue?

I don't know anything about the Debug stuff, I just started using eZ Publish.

Tuesday 19 June 2007 3:28:02 pm

Okay I think I figured it out. It does have to do with the removal of the index.php file in the URI.

If I retry the URL to the movie directly, BUT add a / to the end of the path, it WILL work. So evidently because the path ends with an extension .wmv Apache is trying to pull that up as a file instead of going through index.php. Once I add the ending slash, then it runs it through index.php thinking its just a directory and everything works.

The new problem I have is what do I have to edit to get the template to adjust the src reference so that I can make this adjustment on the actual page?

Thanks,

Tuesday 19 June 2007 3:59:33 pm

Duh, I removed the wmv reference from my httpd.conf virtual hosts declaration. Everything works fine. Fixing it this way will just require me to put all Media Files into the Media Library before they will play. Good problem to have anyway for organization.

Thanks,

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from