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:
parent
efa839bb88
commit
c91b510ef2
@ -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;
|
||||
}
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user