Skip to content

Commit

Permalink
feat(live-edge-window): Add basic support for m-ui-e liveEdgeStart pr…
Browse files Browse the repository at this point in the history
…oposal.
  • Loading branch information
cjpillsbury committed Feb 16, 2023
1 parent 72e9705 commit 69476b3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/js/media-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -1025,6 +1025,10 @@ const Delegates = {
const media = controller.media;

if (!media) return false;
if (typeof media.liveEdgeStart === 'number') {
if (Number.isNaN(media.liveEdgeStart)) return false;
return media.currentTime >= media.liveEdgeStart;
}

const streamIsLive = controller.getAttribute(MediaUIAttributes.MEDIA_STREAM_TYPE) === 'live';
const seekable = media.seekable;
Expand Down

0 comments on commit 69476b3

Please sign in to comment.