Make sure that Uint8Array is available before registering Flash source handler
Showing
1 changed file
with
3 additions
and
1 deletions
... | @@ -125,7 +125,9 @@ videojs.HlsSourceHandler = function(mode) { | ... | @@ -125,7 +125,9 @@ videojs.HlsSourceHandler = function(mode) { |
125 | if (videojs.MediaSource.supportsNativeMediaSources()) { | 125 | if (videojs.MediaSource.supportsNativeMediaSources()) { |
126 | videojs.getComponent('Html5').registerSourceHandler(videojs.HlsSourceHandler('html5')); | 126 | videojs.getComponent('Html5').registerSourceHandler(videojs.HlsSourceHandler('html5')); |
127 | } | 127 | } |
128 | videojs.getComponent('Flash').registerSourceHandler(videojs.HlsSourceHandler('flash')); | 128 | if (window.Uint8Array) { |
129 | videojs.getComponent('Flash').registerSourceHandler(videojs.HlsSourceHandler('flash')); | ||
130 | } | ||
129 | 131 | ||
130 | // the desired length of video to maintain in the buffer, in seconds | 132 | // the desired length of video to maintain in the buffer, in seconds |
131 | videojs.Hls.GOAL_BUFFER_LENGTH = 30; | 133 | videojs.Hls.GOAL_BUFFER_LENGTH = 30; | ... | ... |
-
Please register or sign in to post a comment