I'm currently working on creating a slider that includes videos from multiple providers, and I need to ensure that the videos stop when changing slides. So far, I've successfully implemented this feature for Vimeo and YouTube without making any additional API calls using the following code:
$('.youtube-iframe')[index].contentWindow.postMessage('{"event":"command","func":"' + 'stopVideo' + '","args":""}', '*');
$('.vimeo-iframe')[index].contentWindow.postMessage('{"method":"pause"}', '*');
However, I have been unable to find an example for Dailymotion on how to make iframes stop using their API.
Does anyone have any suggestions or ideas on how to achieve this with Dailymotion?