8d4ab4b4 by David LaPalomento

Merge pull request #435 from videojs/dont-register-flash-sh-unconditionally

Make sure that Uint8Array is available before registering Flash source handler
2 parents 1551d9c4 2110555c
...@@ -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;
......