summaryrefslogtreecommitdiff
path: root/app/client/live/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/client/live/index.js')
-rw-r--r--app/client/live/index.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/app/client/live/index.js b/app/client/live/index.js
index ce0be14..73fc134 100644
--- a/app/client/live/index.js
+++ b/app/client/live/index.js
@@ -104,7 +104,7 @@ class App extends Component {
{this.props.opt.processing ? 'Pause' : 'Restart'}
</Button>
<Button
- title={'Record video'}
+ title={this.props.opt.recording ? 'Recording (' + timeInSeconds(this.props.opt.recordFrames) +')' : 'Record video' }
onClick={this.toggleRecording}
>
{this.props.opt.recording ? 'Recording' : 'Record'}
@@ -227,7 +227,9 @@ class App extends Component {
)
}
}
-
+function timeInSeconds(n){
+ return (n / 10).toFixed(1) + ' s.'
+}
const mapStateToProps = state => ({
opt: state.live.opt,
frame: state.live.frame,