Issue with skins not loading on JWPlayer

0
The player plugin doesn't load skins because of crossdomain limitations as described here http://support.jwplayer.com/customer/portal/articles/1403679-crossdomain-file-loading

This happens because the player attempts to pull skins from a url without www but my website rewrites to www. Muscol does the same with some image files and they end up as url redirections in performance reports.

In jwplayer.php I changed

$array_params["skin"] = $uri->base() . $plugin_root . "skins/" . $params->get('skin') .".xml";


for

$array_params["skin"] = "http:// www. lobotoradio.com/plugins/muscolplayers/jwplayer/skins/" . $params->get('skin') .".xml";


This way the player loads the skin, but it's an fugly hack. Have you guys seen this around? Why some things ignore the url redirection to www?
Responses (3)
  • Accepted Answer

    Sunday, September 21 2014, 03:16 AM - #Permalink
    0
    By the way, what I'm trying to do by changing skins is to make it as compact as possible, starting by removing the album cover from the player. For this there's a setting on the muscol configuration, but that doesn't seem to work.
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, September 21 2014, 11:12 AM - #Permalink
    0
    this looks like there's some kind of missconfiguration in joomla that takes the "root" of the site without www instead of with www. it's weird. but it's not related to Music Collection.
    the function $uri->base() as you can see is a native joomla function.. music collection or the player does not "act" on this...

    in any case your fix is OK.
    The reply is currently minimized Show
  • Accepted Answer

    Monday, September 22 2014, 12:31 AM - #Permalink
    0
    Ok. It's hard to configure Joomla sometimes with so many components and modules working out things differently. I'll leave the hack until I find what is misconfigured in my system.
    The reply is currently minimized Show
Your Reply