define(["exports","../io/io-controller.js","../config.js"],function(_exports,_ioController,_config){Object.defineProperty(_exports,"__esModule",{value:!0}),_exports.default=void 0;var Features=function(){function Features(){babelHelpers.classCallCheck(this,Features)}return babelHelpers.createClass(Features,null,[{key:"supportMSEH264Playback",value:function(){return window.MediaSource&&window.MediaSource.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"')}},{key:"supportNetworkStreamIO",value:function(){var ioctl=new _ioController.default({},(0,_config.createDefaultConfig)()),loaderType=ioctl.loaderType;return ioctl.destroy(),"fetch-stream-loader"===loaderType||"xhr-moz-chunked-loader"===loaderType}},{key:"getNetworkLoaderTypeName",value:function(){var ioctl=new _ioController.default({},(0,_config.createDefaultConfig)()),loaderType=ioctl.loaderType;return ioctl.destroy(),loaderType}},{key:"supportNativeMediaPlayback",value:function(mimeType){mimeType=(Features.videoElement=Features.videoElement?Features.videoElement:window.document.createElement("video")).canPlayType(mimeType);return"probably"===mimeType||"maybe"===mimeType}},{key:"getFeatureList",value:function(){var features={mseFlvPlayback:!1,mseLiveFlvPlayback:!1,networkStreamIO:!1,networkLoaderName:"",nativeMP4H264Playback:!1,nativeWebmVP8Playback:!1,nativeWebmVP9Playback:!1};return features.mseFlvPlayback=Features.supportMSEH264Playback(),features.networkStreamIO=Features.supportNetworkStreamIO(),features.networkLoaderName=Features.getNetworkLoaderTypeName(),features.mseLiveFlvPlayback=features.mseFlvPlayback&&features.networkStreamIO,features.nativeMP4H264Playback=Features.supportNativeMediaPlayback('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),features.nativeWebmVP8Playback=Features.supportNativeMediaPlayback('video/webm; codecs="vp8.0, vorbis"'),features.nativeWebmVP9Playback=Features.supportNativeMediaPlayback('video/webm; codecs="vp9"'),features}}]),Features}();_exports.default=Features});