Skip to content
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

added condition to stop and init capture #677

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added android/.gradle/7.4.2/checksums/checksums.lock
Binary file not shown.
Binary file not shown.
Empty file.
Binary file added android/.gradle/7.4.2/fileChanges/last-build.bin
Binary file not shown.
Binary file added android/.gradle/7.4.2/fileHashes/fileHashes.lock
Binary file not shown.
Empty file.
Binary file not shown.
2 changes: 2 additions & 0 deletions android/.gradle/buildOutputCleanup/cache.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#Wed Jul 05 11:04:12 BRT 2023
gradle.version=7.4.2
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -74,16 +74,19 @@ public void init() {

@Override
public int startCapture() {
capturing = true;

mHandler.postDelayed(newFrame, 1000 / fps);
if(!capturing){
capturing = true;
mHandler.postDelayed(newFrame, 1000 / fps);
}
return 0;
}

@Override
public int stopCapture() {
capturing = false;
mHandler.removeCallbacks(newFrame);
if(capturing){
capturing = false;
mHandler.removeCallbacks(newFrame);
}
return 0;
}

Expand Down