1
0
mirror of https://github.com/videojs/video.js.git synced 2024-12-12 11:15:04 +02:00

fix(tech): add abstract setScrubbing in tech.js (#6808)

This commit is contained in:
Gary Katsevman 2020-08-17 15:15:32 -04:00 committed by GitHub
parent efa839bb88
commit c91b510ef2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 0 deletions

View File

@ -524,6 +524,15 @@ class Html5 extends Tech {
});
}
/**
* Set whether we are scrubbing or not.
* This is used to decide whether we should use `fastSeek` or not.
* `fastSeek` is used to provide trick play on Safari browsers.
*
* @param {boolean} isScrubbing
* - true for we are currently scrubbing
* - false for we are no longer scrubbing
*/
setScrubbing(isScrubbing) {
this.isScrubbing_ = isScrubbing;
}

View File

@ -483,6 +483,15 @@ class Tech extends Component {
return createTimeRange();
}
/**
* Set whether we are scrubbing or not
*
* @abstract
*
* @see {Html5#setScrubbing}
*/
setScrubbing() {}
/**
* Causes a manual time update to occur if {@link Tech#manualTimeUpdatesOn} was
* previously called.