WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Audio Player] Is there a way to have mp3 playing throughout Web site continually? (12 posts)

  1. rlebowitz
    Member
    Posted 4 years ago #

    Hi,
    I would like one background song playing as the user navigates through my site.
    I embedded Audio Player on one of my pages and it works very well. However, I don't want the song to restart and replay every time someone links to a different page.

    Is this possible to achieve?

    I thought maybe if I embedded audio player in the header or footer, I could achieve this. But this leads me to another problem: when I embed audio player into the header or footer, nothing shows up at all! (I am using the php as instructed on http://wpaudioplayer.com/frequently-asked-questions)

    Can anyone assist with one or both of these problems?

    Thank you very much!
    Robert

  2. doryphores
    Member
    Posted 4 years ago #

    Hi,

    This isn't possible. If you embed Audio Player anywhere on your site, it will still stop every time you load a new page as it will also reload the player. The only way to achieve continuous play would be to open it in a popup window (and there isn't an easy way to achieve this with WordPress alone).

    Regarding the method to embed Audio Player in the header or footer, I can only help if I can see an example. Post a link to your site and I can have a look.

    Martin

  3. rlebowitz
    Member
    Posted 4 years ago #

    Hi Martin,

    Thanks very much for your reply. I have three follow-ups:

    1) I understand what you say about the pop-up window. I have seen some sites, though, that have achieved this without a pop-up window. (e.g. http://bonya.su) Were they able to do this because it is not a WordPress site but rather a flash site?

    2) You mention a pop-up window. I will do my research, but am wondering if this is possible? I know you mention that it is not easy...but is it possible? (And might you be able to direct me anywhere to implement it if it is?)

    3) Finally, thank you very much for your offer to look at my site and see if audio player can be put in the footer.

    My site is http://polina-such.freehostia.com/experience. As you can see, I embedded it in the bottom of the page and would like to embed it in the footer of each page.

    Thanks again for all your help!
    Robert

  4. rlebowitz
    Member
    Posted 4 years ago #

    Hi Martin,

    I am still trying to place my audio player in my footer but without success.

    I am following these instructions from your page:

    >To insert a player anywhere else than in a page or post, use this “tag”:
    1. <?php if (function_exists("insert_audio_player")) {
    2. insert_audio_player("[audio:http://www.domain.com/path/to/song.mp3]");
    3. } ?> "

    May I ask:
    *Can I place this code anywhere in the footer code or does it go in a specific place?
    *Is there anything else I have to do in order to get it to work once it placed in the footer?

    Thank you so much for a wonderful plugin and for your kind help.

    Robert

  5. rlebowitz
    Member
    Posted 4 years ago #

    P.S.

    Here is my footer.php:

    <?php
    global $options;
    foreach ($options as $value) {
    if (get_option( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; }
    else { $$value['id'] = get_option( $value['id'] ); }
    }
    ?>
    </div><!-- #main -->

    <?php thematic_abovefooter(); ?>

    <div id="footer">
    <?php get_sidebar('subsidiary'); ?>
    <div id="siteinfo">

    </div><!-- #footer -->

    <?php thematic_belowfooter(); ?>

    </div><!-- #wrapper .hfeed -->

    <?php wp_footer(); ?>

    ?php if (function_exists("insert_audio_player")) {
    insert_audio_player("[audio:http://polinasuch.webatu.com/treasure.mp3|autostart=yes]");
    } ?

    <?php thematic_after(); ?>
    </body>
    </html>

  6. doryphores
    Member
    Posted 4 years ago #

    Try moving the wp_footer call after the audio player code:

    <?php if (function_exists("insert_audio_player")) {
    insert_audio_player("[audio:http://polinasuch.webatu.com/treasure.mp3|autostart=yes]");
    } ?>
    
    <?php wp_footer(); ?>

    Martin

  7. doryphores
    Member
    Posted 4 years ago #

    A note about the http://bonya.su site. The site is a Flash site. This is why they can achieve continuous background music on all pages.

    Martin

  8. rlebowitz
    Member
    Posted 4 years ago #

    Hey Dory,

    Thanks! That did the trick!

    I really appreciate your help. I will not forget you when I am looking to make donations to worthy causes.

    Best wishes,
    Robert

  9. Leafblade
    Member
    Posted 4 years ago #

    one idea would be to use frames for the site, although then noone would be able to see the actual URLS on teh site, and every time they hit refresh, it would do back to the beginning of the site and teh player would then restart.

    if you get what i mean...

  10. vipul_wpu
    Member
    Posted 3 years ago #

    This is something that I have found impossible to achieve, we tried playing a welsome audio that dont restart from the begining on site navigation of our website eConsumerComplaints but finally gave up because many experss say that this wont be possible on a WP site.

  11. Andrew Tegenkamp
    Member
    Posted 3 years ago #

    There is a plugin called StreamPad that puts a bar at the bottom of your site. It finds all audio files in your site and has a link to popup an audio player with all the audio on your site as a playlist. It's one idea and you could either use their plugin (and the link for their site) or develop your own similar one if you know how. That plugin also has a click here to play that refreshes on each page as well.

  12. bemoses
    Member
    Posted 3 years ago #

    Does anybody know the process of embedding the music to play continuously with the iframe method?

Topic Closed

This topic has been closed to new replies.

About this Topic