-
Notifications
You must be signed in to change notification settings - Fork 14
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
feat(FEC-10817): expose the current time of the video element in live streams #589
Conversation
src/components/live-tag/live-tag.js
Outdated
const tagStyleClass = [style.liveTag]; | ||
if (props.isDvr && !this.isOnLiveEdge()) tagStyleClass.push(style.nonLivePlayhead); |
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.
why isDvr
removed? if needed so remove it from mapStateToProps as well
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.
If you are out-of-sync (paused for example) also on live without DVR, we would like to see indication on the live tag.
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.
this is new behavior. how is related to this change?
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.
Now the calculation is different so we can support it as part of this change. Like before it's just a bug.
@@ -542,7 +542,7 @@ class SeekBar extends Component { | |||
*/ | |||
render(props: any, state: Object): React$Element<any> { | |||
const virtualProgressWidth = `${(props.virtualTime / props.duration) * 100}%`; | |||
const progressWidth = `${(props.currentTime / props.duration) * 100}%`; | |||
const progressWidth = `${props.forceFullProgress ? 100 : (props.currentTime / props.duration) * 100}%`; |
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.
why is needed?
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.
Now the live time is linear and duration is always bigger than the current time. For that reason you will see unfulfilled progress on the progress bar's edge. When we are on live edge this has no meaning so we would like to see full progress.
revert kaltura/playkit-js-ui#589 and kaltura/playkit-js-ui#615 make the live seekbar range between dvr start to the live duration Solves FEC-11400
Description of the Changes
expose the current time of the video element in live streams
CheckLists