Record between play and pause duration

22 views
Skip to first unread message

Inteser Ahmed

unread,
Oct 13, 2020, 11:11:02 AM10/13/20
to Flutter Development (flutter-dev)
How to record time between when a video start and paused? The timer will restart and wait for another play command.

Andy Greenshaw

unread,
Oct 13, 2020, 11:16:12 AM10/13/20
to Flutter Development (flutter-dev), Inteser Ahmed
Will the recording continue in the background?
Best to save the current time (at start record) to shared_preferences (or to a file), then when recording stopped, retrieve that value and work out the time difference.
On Oct 13, 2020, 4:11 PM +0100, Inteser Ahmed <kishor...@gmail.com>, wrote:
How to record time between when a video start and paused? The timer will restart and wait for another play command.

--
You received this message because you are subscribed to the Google Groups "Flutter Development (flutter-dev)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/a8e02cdd-90b4-42d9-812f-f74c6d6a73b9n%40googlegroups.com.

Inteser Ahmed

unread,
Oct 13, 2020, 11:22:59 AM10/13/20
to Flutter Development (flutter-dev)

No all the record time will happen in the app while its running.

Andy Greenshaw

unread,
Oct 13, 2020, 11:27:17 AM10/13/20
to Flutter Development (flutter-dev), Inteser Ahmed
Same methods applies - save start time and work out the difference. If you will never record in the background (I assume you stop recording if the app is backgrounded then?), you can just store the start time in a variable and workout the time difference when recording is stopped.
Reply all
Reply to author
Forward
0 new messages