Player won't work using both www and non-www
perandre - March 30, 2009 - 20:24
| Project: | FLV Media Player |
| Version: | 6.x-1.0-beta3 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
On a site where both www.example.com and example.com works, the path to player will appear in the js (end of html) with www if the one who edited the node last uses www in the url for the site (all settings use relative paths). The problem is that this won't work if a user goes to the site not using www...and vice versa. If you just edit it with example.com/node/*/edit, video will work with non-www urls again.

#1
Try setting the player path to just "path/to/player.swf" Flvmediaplayer should both cache correctly and display the right one depending on URL
#2
That's the setting I've been using on the main setting, profile and node override; /sites/default/files/player.swf. I confirmed the issue on another network/computer. I now set up .htaccess to force non-www, and things seem smooth...
#3
Hrm, I think the dev branch is a bit ahead of that solution. Give me a few hours to set up the migration path and then you should have a solution which doesn't require that.
#4
Thanks. Also: After truncating cahce_flvmediaplayer, I still get the old path in the beginning of the html:
if (Drupal.jsEnabled) {$(document).ready(function() {
$.fn.media.defaults.flvPlayer = '//beta/sites/default/files/player/player.swf';
$.fn.media.defaults.mp3Player = '//beta/sites/default/files/player/player.swf';
$('.filefield-file a').media();
});
}