Skip to content

Commit

Permalink
Readme: clarify code comment
Browse files Browse the repository at this point in the history
  • Loading branch information
tchakabam authored Jan 5, 2018
1 parent 2d2d01c commit aa22b58
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ hls.js is written in [ECMAScript6], and transpiled in ECMAScript5 using [Babel].
video.play();
});
}
// hls.js is not supported on iOS as it does not support Media Source Extensions (MSE).
// But you can provide an HLS manifest (i.e. .m3u8 URL) directly to the element on iOS and it will play
// This effectively bypasses hls.js for iOS
// hls.js is not supported on platforms that do not have Media Source Extensions (MSE) enabled.
// When the browser has built-in HLS support (check using `canPlayType`), we can provide an HLS manifest (i.e. .m3u8 URL) directly to the video element throught the `src` property.
// This is using the built-in support of the plain video element, without using hls.js.
else if (video.canPlayType('application/vnd.apple.mpegurl')) {
video.src = 'https://video-dev.github.io/streams/x36xhzz/x36xhzz.m3u8';
video.addEventListener('canplay', function() {
Expand Down

0 comments on commit aa22b58

Please sign in to comment.