• I installed the plugin, activated it, and whenever I place the shortcode within a page’s content it displays correctly. I wanted to reference the player within my own custom built plugin, so I ran the do_shortcode() function.
    When viewing the player while signed into WordPress, everything is as it should. The odd thing is that as soon as you sign out, no matter which browser type, the player either defaults to the browser’s version, or it refuses to be displayed at all.

    Here is the url to the page:
    http://outofthedepths.net/songs

    Here is the code that my plugin uses.

    function song_main($atts) {
    	extract(shortcode_atts(array(
    		'title' => '',
    		'file' => '',
    		'album' => '',
    		'songbook_page' => ''
    	), $atts));
    
    	$fullFile = "http://outofthedepths.net/wp-content/uploads/" . $file . ".mp3";
            $cAL_audio_player = "[sc_embed_player_template1 fileurl='" . $fullFile . "']";
    
    	$song_entry = $title . "<div class='audio_environment'><div class='audio_holder'>" . do_shortcode($cAL_audio_player) . "</div></div><img class='song-menu_icon' src='http://outofthedepths.net/wp-content/uploads/2015/02/1423511367_menu2-16.png' /><div class='song-menu'><div class='song_contextual_menu'><a href='http://outofthedepths.net/albums/" . $album . "/'><div class='top_song-menu_section song-menu_sections'>Go to Album</div></a><a href='http://outofthedepths.net/songbook/" . $songbook_page . "/'><div class='between_song-menu_section song-menu_sections'>Go to the Songbook</div></a><a href='http://outofthedepths.net/wp-content/uploads/force-download.php?file=" . $fullFile . "'><div class='bottom_song-menu_section song-menu_sections'>Download this Song</div></a></div></div>";
    
    	return $song_entry;
    }

    https://wordpress.org/plugins/compact-wp-audio-player/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author mra13

    (@mra13)

    Are you seeing a cached page when you are not logged into the site?

    Thread Starter JDAsbill

    (@jdasbill)

    No. Because if I make changes to other parts of the code, they take effect immediately. It is only when changes are made to player itself that nothing happens.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Player defaulting browser player’ is closed to new replies.