Skip to content

Commit

Permalink
Merge pull request #79 from THEOplayer/millicast-live-indicator
Browse files Browse the repository at this point in the history
Added logic to show live state in pure live streams
  • Loading branch information
MattiasBuelens authored Nov 20, 2024
2 parents c749a21 + 86269c6 commit 33e0862
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
8 changes: 6 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,17 @@ sidebar_custom_props: { 'icon': 'πŸ“°' }
> - 🏠 Internal
> - πŸ’… Polish
## Unreleased

- πŸ› Fixed live UI not showing for Millicast streams. ([#79](https://github.com/THEOplayer/web-ui/pull/79))

## v1.9.1 (2024-09-27)

- πŸ› Fixed <kbd>Enter</kbd> and <kbd>Space</kbd> keys not working to activate buttons in the UI.
- πŸ› Fixed <kbd>Enter</kbd> and <kbd>Space</kbd> keys not working to activate buttons in the UI. ([#76](https://github.com/THEOplayer/web-ui/pull/76))

## v1.9.0 (2024-09-06)

- πŸš€ Added support for THEOplayer 8.0.
- πŸš€ Added support for THEOplayer 8.0. ([#72](https://github.com/THEOplayer/web-ui/pull/72))

## v1.8.2 (2024-08-29)

Expand Down
2 changes: 1 addition & 1 deletion react/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ sidebar_custom_props: { 'icon': 'πŸ“°' }

## v1.9.0 (2024-09-06)

- πŸš€ Added support for THEOplayer 8.0.
- πŸš€ Added support for THEOplayer 8.0. ([#72](https://github.com/THEOplayer/web-ui/pull/72))
- 🏠 See changes to [Open Video UI for Web v1.9.0](https://github.com/THEOplayer/web-ui/blob/v1.9.0/CHANGELOG.md)

## v1.8.2 (2024-08-29)
Expand Down
2 changes: 2 additions & 0 deletions src/components/LiveButton.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,8 @@ function isLive(player: ChromelessPlayer, threshold: number): boolean {
const seekable = player.seekable;
if (seekable.length > 0) {
return seekable.end(seekable.length - 1) - player.currentTime <= threshold;
} else {
return true;
}
}
return false;
Expand Down

0 comments on commit 33e0862

Please sign in to comment.