Skip to content

Commit c91b510

Browse files
authored
fix(tech): add abstract setScrubbing in tech.js (#6808)
1 parent efa839b commit c91b510

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

src/js/tech/html5.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -524,6 +524,15 @@ class Html5 extends Tech {
524524
});
525525
}
526526

527+
/**
528+
* Set whether we are scrubbing or not.
529+
* This is used to decide whether we should use `fastSeek` or not.
530+
* `fastSeek` is used to provide trick play on Safari browsers.
531+
*
532+
* @param {boolean} isScrubbing
533+
* - true for we are currently scrubbing
534+
* - false for we are no longer scrubbing
535+
*/
527536
setScrubbing(isScrubbing) {
528537
this.isScrubbing_ = isScrubbing;
529538
}

src/js/tech/tech.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -483,6 +483,15 @@ class Tech extends Component {
483483
return createTimeRange();
484484
}
485485

486+
/**
487+
* Set whether we are scrubbing or not
488+
*
489+
* @abstract
490+
*
491+
* @see {Html5#setScrubbing}
492+
*/
493+
setScrubbing() {}
494+
486495
/**
487496
* Causes a manual time update to occur if {@link Tech#manualTimeUpdatesOn} was
488497
* previously called.

0 commit comments

Comments
 (0)