When JS compression is turned on, the path to the sites/all/libraries/mediaelement/build/flashmediaelement.swf file becomes relative to the current node path, ie http://example.com/node/123/flashmediaelement.swf

Attached is the simple fix we used however I am guessing it isn't an appropriate fix, but more of an indicator of the problem.

CommentFileSizeAuthor
mediaelement_js_compression.patch581 bytescrashtest_
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Dave Reid’s picture

Status: Active » Reviewed & tested by the community

Obviously the solution is to fix D7's JS caching, but this is a fine work-around for now. Tested and confirmed it fixes.

mfer’s picture

Status: Reviewed & tested by the community » Fixed

The issue is not with caching but preprocessing. MediaElement detects its path to know the path to the other assets it needs (like flash files). Once proprocessed the two paths are different. See http://git.drupalcode.org/project/mediaelement.git/commitdiff/fee9c11feb... for more details.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.