Skip to content

Commit

Permalink
Remove note about "canplay" that references code removed from the exa…
Browse files Browse the repository at this point in the history
…mple (related to autoplay policy)

Closes #3153
  • Loading branch information
robwalch committed Nov 27, 2023
1 parent 925536b commit db30e1f
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -357,12 +357,6 @@ native browser support for HLS playback in HTMLMediaElements:
// we can provide an HLS manifest (i.e. .m3u8 URL) directly to the video
// element through the `src` property. This is using the built-in support
// of the plain video element, without using HLS.js.
//
// Note: it would be more normal to wait on the 'canplay' event below however
// on Safari (where you are most likely to find built-in HLS support) the
// video.src URL must be on the user-driven white-list before a 'canplay'
// event will be emitted; the last video event that can be reliably
// listened-for when the URL is not on the white-list is 'loadedmetadata'.
else if (video.canPlayType('application/vnd.apple.mpegurl')) {
video.src = videoSrc;
}
Expand Down

0 comments on commit db30e1f

Please sign in to comment.