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) {
if (videojs.MediaSource.supportsNativeMediaSources()) {
videojs.getComponent('Html5').registerSourceHandler(videojs.HlsSourceHandler('html5'));
}
videojs.getComponent('Flash').registerSourceHandler(videojs.HlsSourceHandler('flash'));
if (window.Uint8Array) {
videojs.getComponent('Flash').registerSourceHandler(videojs.HlsSourceHandler('flash'));
}
// the desired length of video to maintain in the buffer, in seconds
videojs.Hls.GOAL_BUFFER_LENGTH = 30;
......