Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi xalexas,

    Thanks for checking out Audiobar. There isn’t a standard way to automatically stop (or pause) the music, but if you feel comfortable inserting some code, I can talk to the programmer to see if he can whip something up for you! I’ll reply here when he gets back to me about it.

    I will also make note of this feature to include it in future versions.

    Thanks,
    Chad.

    Thread Starter xalexas

    (@xalexas)

    OK. Thank you. Meanwhile maybe I can set default silence on other pages? It would be usefull if I could autoplay silence? I have tried to autoplay with adding audiobar-bar.php to my theme folder with following code:
    <?php $autoplay=1; include ABSPATH."wp-content/plugins/audiobar/templates/audiobar-bar.php";?> but it doesn’t autoplay file.
    Autoplay works only on home page even without that code, everywhere else there is a play button.
    Also is there any option to stop music? There is only play button. I would like to have option for visitors to turn off the music.

    Thread Starter xalexas

    (@xalexas)

    I have found solution with some JavaScript for hHTML audio but still no luck with flash player. Here is the code for HTML player:

    Put this into header.php:

    <script type="text/javascript">
    
    var iframe = parent.document.getElementById('iframe_play');
    var innerDoc = (iframe.contentDocument) ? iframe.contentDocument : iframe.contentWindow.document;
    var song = innerDoc.getElementById('audio');
    
    <?php if($post->ID == 384): ?>
     song.pause();
    
     <?php else: ?>
    
      song.play();
     <?php endif; ?>
    
    </script>

    Does anyone knows how to control flash player with JavaScript?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Audiobar] Muting on certain pages’ is closed to new replies.