Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide player for ended streams and make video blocks also hide the player sometimes #521

Merged

Conversation

LukasKalbertodt
Copy link
Member

See commits.

image

The logic was just moved to the `Player` component. Also, the props of
`Player` were somewhat simplified by grouping most into one `event`
prop that can be passed more easily.
@github-actions
Copy link

🚀 This PR was deployed at https://pr521.tobira.opencast.org. The deployment will be updated whenever someone pushes onto this PR's branch.

if (event.isLive && hasEnded === false) {
handles.push(setTimeout(onEventStateChange, endTime.getTime() - Date.now() + 500));
}
return () => handles.forEach(handle => clearTimeout(handle));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return () => handles.forEach(handle => clearTimeout(handle));
return () => handles.forEach(clearTimeout);

This is very similar to the one appearing before a live-stream has
started.
@LukasKalbertodt LukasKalbertodt merged commit ac4b81b into elan-ev:master Aug 23, 2022
@LukasKalbertodt LukasKalbertodt deleted the hide-player-after-enddate branch August 23, 2022 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants