• Hi guys.

    If you are using the native HTML5 player for listening to MP3’s then the code is wrong. Here’s a patch for 0.45.15

    File: \sermon-browser\sb-includess\frontend.php
    Line 685
    echo do_shortcode(str_ireplace('%SERMONURL%', $url, sb_get_option('mp3_shortcode')));

    Should be:

    $attr = array(
    				'src'		=>	$url,
    				'loop'     	=> '',
    				'autoplay' 	=> '',
    				'preload' 	=> 'none'
    			);
    			echo wp_audio_shortcode( $attr );

    Otherwise the src for the media player never gets added.

    Thanks,
    Wil.

    https://wordpress.org/plugins/sermon-browser/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter DeveloperWil

    (@developerwil)

    Any of the developers would like to acknowledge?

    Hi DeveloperWil,

    I just wanted to say thanks for posting this.

    I was just getting a “Download File” option whenever I viewed a sermon page through Sermon Browser, instead of seeing the audio player.

    Replacing the original line 685 with the code you posted fixed the problem.

    So thanks for that.
    Andy

    Thread Starter DeveloperWil

    (@developerwil)

    No worries @ahoyland

    Looks like the sermon browser is currently unsupported which is a shame because it has a huge user base.

    Indeed!

    One of those ones where I would really like to have the ability to support it!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Audio shortcode not implemented correctly’ is closed to new replies.