Show initial broadcast position in seekbar (#9796)

This commit is contained in:
Michael Weimann 2022-12-22 15:30:42 +01:00 committed by GitHub
parent e9224f6fce
commit b07bd4d102
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 40 additions and 13 deletions

View file

@ -60,7 +60,7 @@ export default class SeekBar extends React.PureComponent<IProps, IState> {
super(props);
this.state = {
percentage: 0,
percentage: percentageOf(this.props.playback.timeSeconds, 0, this.props.playback.durationSeconds),
};
// We don't need to de-register: the class handles this for us internally