summaryrefslogtreecommitdiff
path: root/app/client/live/index.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-05-21 21:25:57 +0200
committerJules Laplace <julescarbon@gmail.com>2018-05-21 21:25:57 +0200
commit79751151d57176188ed36b0d718ac3aaad641afb (patch)
tree92d6e9d0e40352a43fb5dc11ddf59efdddd6cec1 /app/client/live/index.js
parent4711e2988c91bdf0a70525ffe18040d1b8158b9a (diff)
save button and save videooo
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,