diff --git a/xmodule/js/src/video/08_video_auto_advance_control.js b/xmodule/js/src/video/08_video_auto_advance_control.js index 7b1a3a37e6..340ebdf99c 100644 --- a/xmodule/js/src/video/08_video_auto_advance_control.js +++ b/xmodule/js/src/video/08_video_auto_advance_control.js @@ -119,8 +119,16 @@ }, autoAdvance: function() { + // We are posting a message to the MFE and then let the eventlistener + // in the MFE handle the action taken. if (this.state.auto_advance) { - $('.sequence-nav-button.button-next').first().click(); + if (window !== window.parent) { + window.parent.postMessage({ + type: 'plugin.autoAdvance', + payload: {} + }, document.referrer + ); + } } } };