Don't init plugin if Uint8Array isn't available
Showing
1 changed file
with
4 additions
and
0 deletions
... | @@ -591,6 +591,10 @@ var | ... | @@ -591,6 +591,10 @@ var |
591 | }; | 591 | }; |
592 | 592 | ||
593 | videojs.plugin('hls', function() { | 593 | videojs.plugin('hls', function() { |
594 | if (typeof Uint8Array === 'undefined') { | ||
595 | return; | ||
596 | } | ||
597 | |||
594 | var initialize = function() { | 598 | var initialize = function() { |
595 | return function() { | 599 | return function() { |
596 | this.hls = initialize(); | 600 | this.hls = initialize(); | ... | ... |
-
Please register or sign in to post a comment