Active
Project:
jQuery Media
Version:
5.x-1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Apr 2008 at 14:50 UTC
Updated:
15 Dec 2010 at 18:05 UTC
When using i18n, the language code is prepended to the default player's path, thus creating a non valid path. Below is an example when using english with i18n:
if (Drupal.jsEnabled) {
$(document).ready(function() {
$.fn.media.defaults.flvPlayer = '/en/mediaplayer.swf';
$.fn.media.defaults.mp3Player = '/en/sites/all/themes/indymedia/players/1pixelout.swf';
$.fn.media.defaults.autoplay = 1;
$.fn.media.defaults.bgColor = '#ff0000';
$('a.media').media( { width: 500 } );
});
}
</script>
Comments
Comment #1
brunodboThis is the path I entered in the 'Default player settings' at /admin/settings/jq:
sites/all/themes/indymedia/players/1pixelout.swf
Comment #2
Boletus commentedI have the same problem with version 6. Did any good solution show up?
Comment #3
Boletus commentedI added a full URL to the player instead of a relative one, i.e. http://www.mydomain.com/sites/all/modules/jquery_media/player.swf
That made it work.
Comment #4
seaneffel commentedBoletus, which file were you editing?
Comment #5
Boletus commentedNo file, just the default player setting.
Comment #6
waddles commentedUsing the full URL didn't work for me, but I spent a few hours nutting out some lua to chop the language prefix off. This is part of some version of the drupal.lua script mentioned at http://nordisch.org/lighttpd
Comment #7
mattez commentedSame issue in D6 & better description:
#373610: flvPlayer path and i18n bug
Comment #8
St0iK commented@Boletus
That worked for me too,
Thanx a lot