• Resolved mafia123

    (@mafia123)


    hey can you please tell me how to mute the player or pause the music of the player using javascript.
    I want to add buttons with onlcick function to do this.
    Please guide me.
    THanks

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter mafia123

    (@mafia123)

    hey i found the solution of this on stack overflow
    but i ran into another problem.
    Plzzzz tell me how to add different audio id to each music to pause or play them individually using java script. A help would be appreciated.
    There is a single player code for every music
    <audio class="player" playsinline controls <?php $status1= get_post_meta($id,'_ahp_audio-repeat', true); if ($status1=="loop"){echo "loop";}else{ echo "";}?> <?php $stutas= get_post_meta($id,'_ahp_audio-autoplay', true); if ($stutas=="on"){echo"autoplay";}?> >

    • This reply was modified 4 years, 2 months ago by mafia123.
    • This reply was modified 4 years, 2 months ago by mafia123.
    Plugin Author Abu Hayat

    (@abuhayat)

    <?php echo $id; ?>
    this print the id dynamically
    Thanks

    Thread Starter mafia123

    (@mafia123)

    I want to play a specific audio using JavaScript among many audio on the same pages. I cannot use audio I’d to achieve that as it plays all the audio at once.
    Please tell me how to achieve that.
    One option is to use player id but i Don’t know how to play music with it.
    If you have any other script or idea please share.

    Plugin Author Abu Hayat

    (@abuhayat)

    Hello,
    You can order a plugin customization service by following this link ->
    https://gum.co/psupport one of our developer will do what you want.
    Thanks

    Thread Starter mafia123

    (@mafia123)

    I am just asking you for how to use player id and for that i have to order plugin customization ????.
    Leave it I will use another plugin.

    Plugin Author Abu Hayat

    (@abuhayat)

    Never mind,
    I already said that how to print the unique id to differentiate the identifier.
    Thanks you !

    Thread Starter mafia123

    (@mafia123)

    Yes you sure did and thank you for that.
    But how to play the audio with that identifier.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘mute or pause audio player using javascipt’ is closed to new replies.