Skip to content

Commit

Permalink
fix(FEC-7108): native load video element for video sibling on mobile (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Ziv committed Sep 11, 2017
1 parent a4b5dc9 commit aec8bdd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/engines/html5/html5.js
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,11 @@ export default class Html5 extends FakeEventTarget implements IEngine {
* @returns {Promise<Object>} - The loaded data
*/
load(startTime: ?number): Promise<Object> {
return this._mediaSourceAdapter ? this._mediaSourceAdapter.load(startTime) : Promise.resolve({});
this._el.load();
if (this._mediaSourceAdapter) {
return this._mediaSourceAdapter.load(startTime);
}
return Promise.resolve({});
}

/**
Expand Down

0 comments on commit aec8bdd

Please sign in to comment.