• I have MANY soundfiles on the same page.
    That is ofcourse resulting in a pretty heavy pageload.

    I would like to have an image instead of the actual compact player by each filename – and then, on click I would like to play the clicked file in my sidebar.

    Is this possible?

    I guess my question is:
    Can I somehow insert and activate a player instance dynamically, using jQuery?

    How?

    Thanks for any help.

    https://www.ads-software.com/plugins/compact-wp-audio-player/

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

    (@mbrsolution)

    Thank you for your question. The plugin developers will investigate further your request.

    Plugin Author mra13

    (@mra13)

    This plugin only works using shortcodes. So you can’t use it directly from jQuery code unless you call the shortcode.

    You can do the following from PHP code to call the shortcode:
    <?php
    do_shortcode(“[sc_embed_player fileurl=’example.com/my-audio.mp3′]”);
    ?>
    Not sure if you can do something similar from your jquery code.

    Thread Starter macjohn

    (@macjohn)

    OK – thank you.

    Well… I should be able to do_shortcode in my AJAX call – but I wonder if the player won’t need to be instantiated (javascript) ?

    I will give it a try.

    Plugin Contributor mbrsolution

    (@mbrsolution)

    @macjohn did you resolve your issue?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘jQuery insert player ?’ is closed to new replies.