Forums / General / Can't get the Media Datatype to work

Can't get the Media Datatype to work

Author Message

Jason Diehl

Tuesday 19 June 2007 4:56:17 am

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

André R.

Tuesday 19 June 2007 5:08:56 am

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>'

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Jason Diehl

Tuesday 19 June 2007 5:13:37 am

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

André R.

Tuesday 19 June 2007 5:32:43 am

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.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Jason Diehl

Tuesday 19 June 2007 5:37:49 am

I get a 404 File not Found

André R.

Tuesday 19 June 2007 5:42:12 am

apache or ez error ?

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Jason Diehl

Tuesday 19 June 2007 5:47:22 am

It's an Apache 404 error

André R.

Tuesday 19 June 2007 5:54:42 am

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

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Jason Diehl

Tuesday 19 June 2007 6:01:28 am

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.

Jason Diehl

Tuesday 19 June 2007 6:28:02 am

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,

Jason Diehl

Tuesday 19 June 2007 6:59:33 am

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,