Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Hugh Lashbrooke

    (@hlashbrooke)

    That will happen if there is a conflict between the audio player and your theme and/or another plugin on your site. The audio player is generated by WordPress itself and is not a part of SSP. You will need to debug this by checking for theme or plugin conflicts. To do this you will need to disable all of your plugins (except for SSP) one by one and then see if the problem is now fixed. If it is then reactivate your plugins one-by-one until the problem returns.

    If none of that helps then switch to a default WordPress them (e.g. Twenty Twelve) and then test it again.

    Once you have done all of that please let me know what the results are and we can work from there.

    Cheers,
    Hugh

    Hi Hugh,

    Unfortunately I don’t think that is the case. I’m having the same issue, I already disabled all plugins on a staging site plus I selected a default WP theme and the audio player doesn’t show yet.

    I’ve traced the issue to the following line and file:

    class-ssp-frontend.php line 190

    Looks like WP audio player doesn’t load when the source URL has GET parameters appended to it and removing that block of code fixes the issue.

    I’m not familiar on how the plugin works, this is the very first time I use it for a client, so, I guess that the appended reference may have a purpose ′?ref=player′ and looks like the purpose is to perform a redirect to the correct location of the audio file.

    Do you think that the issue may be a WordPress issue? Will I be safe if I temporary remove that block of code?

    Thanks in advance. Regards!

    @luigi Jonne Garcia

    Below find a temporary fix. You can add this code to your theme’s functions.php file.

    function patch_ssp_player_url( $link, $episode_id, $file ){
    
      if( preg_match('/\?ref=player/', $link) ){
        $link = str_replace('?ref=player', '', $link);
      }
    
      return $link;
    }
    add_filter('ssp_episode_download_link', 'patch_ssp_player_url', 10, 3);
    Plugin Contributor Hugh Lashbrooke

    (@hlashbrooke)

    If that fixes it for you then you can go ahead and use that snippet, but by default the WordPress media player has no problem with the GET parameter there. The one time where I have seen it become an issue is when you have the WordPress SEO plugin installed with the permalink cleaning option activated. In that case you simply need to add ref to the list of GET parameters to ignore.

    So if you have really do have no other plugins active and you are using a default WordPress theme then there will be nothing stopping the audio player from displaying correctly as there should be nothing else interfering with it, unless your host has some abnormal caching rules or something similar that are affecting things.

    Cheers,
    Hugh

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘URL instead of Audio Player’ is closed to new replies.