-
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
Open
olipyskoty
wants to merge
10
commits into
master
Choose a base branch
from
VIDEO-10788-track-switch-off-ui
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 4 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
cc7a868
add storybook controls for switching off video
olipyskoty a711fe5
Update avatar icon
olipyskoty 07ba55e
add low bandwidth message and UI
olipyskoty 201991e
update tests to account for switch off ui
olipyskoty b72f3b4
remove transitions
olipyskoty f14f45b
include MUI fade
olipyskoty f2aa050
remove commented out code
olipyskoty a0b3442
add dominant speaker logic for mainparticipantinfo
olipyskoty 127a93e
update Fade components for faster transition
olipyskoty e52a063
remove unsued classnames
olipyskoty File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -108,6 +108,22 @@ const useStyles = makeStyles((theme: Theme) => ({ | |
background: '#A90000', | ||
}, | ||
}, | ||
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 2s', | ||
}, | ||
switchOffMessage: { | ||
background: '#1F304C', | ||
borderRadius: '100px', | ||
padding: '0.3em 1.5em', | ||
color: '#FFFFFF', | ||
}, | ||
})); | ||
|
||
interface MainParticipantInfoProps { | ||
|
@@ -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 commentThe reason will be displayed to describe this comment to others. Learn more. Wondering if |
||
[classes.isSwitchedOff]: isVideoSwitchedOff, | ||
})} | ||
> | ||
<Typography variant="body1" className={classes.switchOffMessage}> | ||
Low bandwidth | ||
</Typography> | ||
</div> | ||
|
||
{!isVideoEnabled && ( | ||
<div className={classes.avatarContainer}> | ||
<AvatarIcon /> | ||
</div> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.