Streaming live at 10am (PST)

Stop iframe from playing


#1

I want to stop iframe from playing when the ‘show’ class is removed from its parent div class.

So, I added code below to script and It works fine.
('iframe').attr('src', (‘iframe’).attr(‘src’));
But, the rest of the iframe players are disappeared.

( document ).ready(function() { (’.btnwrapper a’).on(‘click’, function () {
var eq = $(this).index();

('.playerwrapper .player').removeClass('show'); (’.playerwrapper .player’).eq(eq).addClass(‘show’);
('iframe').attr('src', (‘iframe’).attr(‘src’));
});
});

webpage: https://www.chinadebate.com/iframe
read only link: https://preview.webflow.com/preview/chinadebate?preview=1d1e29d2465ee828d60d3af93471d612

Thank you so much, in advance, for help.