Commit 46797666 by noraiz-anwar

Emit play_video event after seek_video event

parent 12c595f8
......@@ -78,6 +78,13 @@
new_time: 1,
type: 'any'
});
expect(state.videoEventsPlugin.emitPlayVideoEvent).toBeTruthy();
});
it('can emit "play_video" event after "seek_video" event ', function() {
state.videoEventsPlugin.emitPlayVideoEvent = false;
state.el.trigger('seek', [1, 0, 'any']);
expect(state.videoEventsPlugin.emitPlayVideoEvent).toBeTruthy();
});
it('can emit "stop_video" event', function() {
......
......@@ -94,6 +94,7 @@
new_time: time,
type: type
});
this.emitPlayVideoEvent = true;
},
onSpeedChange: function(event, newSpeed, oldSpeed) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment