1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-12-20 20:42:03 +03:00

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
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