Add playback time

This commit is contained in:
Kyrylo Gliebov 2018-12-11 17:31:40 +01:00 committed by Kirill Glebov
parent 66998cafa8
commit ffeec0bd36
2 changed files with 5 additions and 0 deletions

View file

@ -1277,6 +1277,7 @@ export class Player extends React.Component {
</button> </button>
<span>{speedStr}</span> <span>{speedStr}</span>
<span style={to_right}> <span style={to_right}>
<span className="session_time">{formatDuration(this.state.currentTsPost)} / {formatDuration(this.buf.pos)}</span>
<button title="Drag'n'Pan" type="button" className="btn btn-default btn-lg" <button title="Drag'n'Pan" type="button" className="btn btn-default btn-lg"
onClick={this.dragPan}> onClick={this.dragPan}>
<i className={"fa fa-" + (this.state.drag_pan ? "hand-rock-o" : "hand-paper-o")} <i className={"fa fa-" + (this.state.drag_pan ? "hand-rock-o" : "hand-paper-o")}

View file

@ -422,3 +422,7 @@ table.listing-ct > thead th:last-child, tr.listing-ct-item td:last-child {
display:block; display:block;
clear:both; clear:both;
} }
.session_time {
margin-right:5px;
}