File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,8 @@ class Html5 extends Tech {
54
54
this . setupSourcesetHandling_ ( ) ;
55
55
}
56
56
57
+ this . isScrubbing_ = false ;
58
+
57
59
if ( this . el_ . hasChildNodes ( ) ) {
58
60
59
61
const nodes = this . el_ . childNodes ;
@@ -537,6 +539,17 @@ class Html5 extends Tech {
537
539
this . isScrubbing_ = isScrubbing ;
538
540
}
539
541
542
+ /**
543
+ * Get whether we are scrubbing or not.
544
+ *
545
+ * @return {boolean } isScrubbing
546
+ * - true for we are currently scrubbing
547
+ * - false for we are no longer scrubbing
548
+ */
549
+ scrubbing ( ) {
550
+ return this . isScrubbing_ ;
551
+ }
552
+
540
553
/**
541
554
* Set current time for the `HTML5` tech.
542
555
*
Original file line number Diff line number Diff line change @@ -501,6 +501,15 @@ class Tech extends Component {
501
501
*/
502
502
setScrubbing ( ) { }
503
503
504
+ /**
505
+ * Get whether we are scrubbing or not
506
+ *
507
+ * @abstract
508
+ *
509
+ * @see {Html5#scrubbing}
510
+ */
511
+ scrubbing ( ) { }
512
+
504
513
/**
505
514
* Causes a manual time update to occur if {@link Tech#manualTimeUpdatesOn} was
506
515
* previously called.
You can’t perform that action at this time.
0 commit comments