File tree 2 files changed +9
-2
lines changed
2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -22,3 +22,9 @@ function ManagedMediaSource() {}
22
22
* @return {boolean }
23
23
*/
24
24
ManagedMediaSource . isTypeSupported = function ( type ) { } ;
25
+
26
+ /**
27
+ * @constructor
28
+ * @extends {SourceBuffer }
29
+ */
30
+ function ManagedSourceBuffer ( ) { }
Original file line number Diff line number Diff line change @@ -40,9 +40,10 @@ shaka.media.Capabilities = class {
40
40
* @return {boolean }
41
41
*/
42
42
static isChangeTypeSupported ( ) {
43
- return ! ! window . SourceBuffer &&
43
+ const sourceBuffer = window . ManagedSourceBuffer || window . SourceBuffer ;
44
+ return ! ! sourceBuffer &&
44
45
// eslint-disable-next-line no-restricted-syntax
45
- ! ! SourceBuffer . prototype && ! ! SourceBuffer . prototype . changeType ;
46
+ ! ! sourceBuffer . prototype && ! ! sourceBuffer . prototype . changeType ;
46
47
}
47
48
} ;
48
49
You can’t perform that action at this time.
0 commit comments