Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor mbrsolution

    (@mbrsolution)

    Hi, are you wanting to keep playing your audio in the background while people navigate across your site?

    Regards.

    Thread Starter karlutz

    (@karlutz)

    Exactly.

    Plugin Contributor mbrsolution

    (@mbrsolution)

    Hi,

    Try adding the following parameter autoplay="true" to the shortcode as per the following example?

    [sc_embed_player autoplay=true fileurl="https://www.example.com/wp-content/uploads/my-music/mysong.mp3"]

    Let me know if this works for you.

    Kind regards.

    Thread Starter karlutz

    (@karlutz)

    That just restarts audio on every new page and plays automatically.

    I want it to be in a frame that does not get reloaded, so wherever you are on the website, whichever page you load, it is uninterrupted background music.

    Plugin Contributor mbrsolution

    (@mbrsolution)

    Hi, you can try adding some code to your theme’s template file. Here is a sample code that might work for what you are trying to achieve. Make sure you also add the following parameter autoplay="true" to the shortcode.

    <?php echo do_shortcode('[sc_embed_player fileurl="URL OF THE MP3 FILE"]'); ?>

    Let me know if this helps you.

    Kind regards.

    Thread Starter karlutz

    (@karlutz)

    On a reload of the page, ie display of a new post, this will be reloaded and therefore start from 0 again.

    • This reply was modified 3 years, 5 months ago by karlutz.
    Plugin Contributor mbrsolution

    (@mbrsolution)

    Hi, unfortunately at present that feature is not currently available in our plugin. The closest we have to your requirements is to use the “loops” parameter in the audio player shortcode to loop an audio file playback automatically. Here is an example shortcode usage with auto loop:

    [sc_embed_player loops="true" fileurl="https://www.example.com/wp-content/uploads/my-music/mysong.mp3"]

    Kind regards.

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

The topic ‘Keep playing while switching pages’ is closed to new replies.