Stream HLS on safari using MediaSource api
问题 I want to stream HLS fragments using media source extension. I have tried the same using mpeg-dash fragments (generated using MP4Box) and media source extension. var mediaSource = new window.MediaSource(); mediaSource.addEventListener('sourceopen', _onSourceOpen); $('video').attr('src', URL.createObjectURL(self.mediaSource)); function _onSourceOpen() { sourceBuffer = mediaSource.addSourceBuffer('video/mp4; codecs="avc1.64000d,mp4a.40.2"'); } function _onFragmentDataLoad(data) { sourceBuffer