-
Notifications
You must be signed in to change notification settings - Fork 727
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
Video 10788 track switch off UI #745
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! We may want to try it out in a real room with a throttled connection.
Also, I noticed that the transitions aren't quite right when a participant is made the dominant speaker:
Here, "test1" is already showing the "Low Bandwidth" message in the sidebar, but as they move to the dominant speaker we see the fade to black transition again. I'm not exactly sure what the fix here would be but we can chat about it.
isSwitchedOff: { | ||
opacity: 1, | ||
visibility: 'visible', | ||
transition: 'all 0.5s linear 2s', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure about the 2s delay. This would display a frozen video for 2 seconds before it fades to black. Seems a little long. I'm not sure I like it because it means that the UI allows the user to be confused about the frozen video for 2 seconds before we reveal what is going on. I think we might just want to let the user know right away. A fade could still be fine though.
@@ -173,7 +189,17 @@ export default function MainParticipantInfo({ participant, children }: MainParti | |||
</Tooltip> | |||
)} | |||
</div> | |||
{(!isVideoEnabled || isVideoSwitchedOff) && ( | |||
<div | |||
className={clsx(classes.avatarContainer, classes.trackSwitchOffContainer, { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wondering if avatarContainer
could be renamed to something more generic since it's now being used to contain something that isn't an avatar.
trackSwitchOffContainer: { | ||
opacity: 0, | ||
visibility: 'hidden', | ||
transition: 'all 0.25s cubic-bezier(0.22, 0.61, 0.36, 1)', | ||
}, | ||
isSwitchedOff: { | ||
opacity: 1, | ||
visibility: 'visible', | ||
transition: 'all 0.5s linear', | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
trackSwitchOffContainer: { | |
opacity: 0, | |
visibility: 'hidden', | |
transition: 'all 0.25s cubic-bezier(0.22, 0.61, 0.36, 1)', | |
}, | |
isSwitchedOff: { | |
opacity: 1, | |
visibility: 'visible', | |
transition: 'all 0.5s linear', | |
}, |
Don't think these are needed. Otherwise looks good!
Contributing to Twilio
Pull Request Details
JIRA link(s):
Description
This PR updates the track switch off UI for v2 rooms according to the new figma designs. See PR #731 for the old designs where we blurred the video.
Burndown
Before review
npm test
Before merge