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 @@ -37,9 +37,10 @@ shaka.media.Capabilities = class {
37
37
* @return {boolean }
38
38
*/
39
39
static isChangeTypeSupported ( ) {
40
- return ! ! window . SourceBuffer &&
40
+ const sourceBuffer = window . ManagedSourceBuffer || window . SourceBuffer ;
41
+ return ! ! sourceBuffer &&
41
42
// eslint-disable-next-line no-restricted-syntax
42
- ! ! SourceBuffer . prototype && ! ! SourceBuffer . prototype . changeType ;
43
+ ! ! sourceBuffer . prototype && ! ! sourceBuffer . prototype . changeType ;
43
44
}
44
45
} ;
45
46
You can’t perform that action at this time.
0 commit comments