Closed voodoosnares closed 6 years ago
I want to toggle Play - Pause on 2 video blocks. I have one button per video block which toggles Play/Pause.
I am using:
$.fn.playPauseYTP = function (YTP) { if (YTP[0].state == 1) { //if the player is playing YTP.YTPPause() } else { YTP.YTPPlay(); } };
with button onclick="$(this).playPauseYTP($('#${topArticle.data.source}'))
I have a problem with pausing the first video when clicking the second PLAY/PAUSE button. Can you help me with that?
Regards
Hi, do you have a link where I can test your issue?
I want to toggle Play - Pause on 2 video blocks. I have one button per video block which toggles Play/Pause.
I am using:
$.fn.playPauseYTP = function (YTP) { if (YTP[0].state == 1) { //if the player is playing YTP.YTPPause() } else { YTP.YTPPlay(); } };
with button onclick="$(this).playPauseYTP($('#${topArticle.data.source}'))
I have a problem with pausing the first video when clicking the second PLAY/PAUSE button. Can you help me with that?
Regards