-
Notifications
You must be signed in to change notification settings - Fork 731
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Keep screen on while recording voicebroadcast #8313
Conversation
@@ -103,6 +105,7 @@ class VoiceBroadcastRecorderQ( | |||
|
|||
override fun startRecord(roomId: String) { | |||
super.startRecord(roomId) | |||
playbackTracker.updateCurrentRecording(AudioMessagePlaybackTracker.RECORDING_ID, emptyList()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should call playbackTracker.stopPlayback()
when stopping the recording (it will change the playback state to IDLE) or rename the existing method/add a new one.
Eventually also call stopPlayback on pause & updateCurrentRecording on resume
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added the tracker on stop. I don't prefer to manage pause state for the moment.
3c6492a
to
baa64cc
Compare
baa64cc
to
2506d95
Compare
2506d95
to
b2cbffc
Compare
Kudos, SonarCloud Quality Gate passed! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Type of change
Content
When you start a recording it will stop when the display timeout is triggerd. We should have a wake lock in this case.
Motivation and context
Screenshots / GIFs
Tests
Tested devices
Checklist