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
Live and Dvr UI #2234
Live and Dvr UI #2234
Conversation
View test looks OK for DVR, but not for Live: |
test this please |
@robwalch updated view test page. Changes will kick in once jwplayer/jwplayer-commercial#3936 builds |
thanks @karimJWP! |
@@ -181,6 +180,9 @@ | |||
.jw-svg-icon-live { | |||
display: none; | |||
} | |||
|
|||
// padding between elapsed time in DVR mode | |||
margin-right: 1em; |
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.
We should use a pixel value for the margin. Using em
would result in the spacing changing if the font size were ever to change, which is not what we want.
src/css/controls/imports/icons.less
Outdated
@@ -104,5 +104,8 @@ | |||
.jw-svg-icon-dvr { | |||
display: none; | |||
} | |||
|
|||
// adds padding between elapsed time in DVR mode | |||
margin-right: 1em; |
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.
See above.
@egreaves addressed but we will need a ticket to improve the time texts (duration, elapsed, etc) across all player states. they have a max-width, are centered and the amount of text varies; this results in text spilling out of the box when the time is very precise (i.e. 12:00:00), and added space when less precise (i.e 4:00). the box instead should wrap around the text to allow us to control the spacing between text elements. |
@karimJWP we should address that now so the text looks balanced for the following use cases:
|
@karimJWP there is a branch 'improvement/live-dvr-ui' in commercial. Since it's merged you can delete it from the remote or rebase it to make sure this PR build succeeds. Top of the logs show that the commercial branch is being switched:
|
a0dd6cc
to
c5844c2
Compare
test this please |
This PR will...
Display the seekable duration of the dvr stream when at live edge, and display the time diff between live and current when not at live edge in dvr mode.
Why is this Pull Request needed?
To resemble the dvr and live mocks provided in the jira ticket
Are there any points in the code the reviewer needs to double check?
n/a
Are there any Pull Requests open in other repos which need to be merged with this?
view tests updated in https://github.com/jwplayer/jwplayer-commercial/pull/3936
Addresses Issue(s):
JW8-96