Skip to content

Commit

Permalink
Pass through setSource opts for seekfinishedemitevent.
Browse files Browse the repository at this point in the history
  • Loading branch information
tsadler1988 committed Jun 19, 2018
1 parent 8d145f2 commit 179e641
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions static/script/devices/mediaplayer/seekfinishedemitevent.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ define(

return function (OverrideClass) {
var oldSetSource = OverrideClass.prototype.setSource;
OverrideClass.prototype.setSource = function (mediaType, url, mimeType) {
OverrideClass.prototype.setSource = function (mediaType, url, mimeType, opts) {
this._count = 0;
if (this.getState() === MediaPlayer.STATE.EMPTY) {
this._emitEvent(MediaPlayer.EVENT.SEEK_ATTEMPTED);
Expand All @@ -37,7 +37,7 @@ define(
} else {
this._timeoutHappened = true;
}
oldSetSource.call(this, mediaType, url, mimeType);
oldSetSource.call(this, mediaType, url, mimeType, opts);
};

var oldOnStatus = OverrideClass.prototype._onStatus;
Expand Down

0 comments on commit 179e641

Please sign in to comment.