8000 startScreenCapture in loop by cparish312 · Pull Request #96 · jasonjmcghee/rem · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

startScreenCapture in loop #96

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

Merged

Conversation

cparish312
Copy link
Contributor

Change retryScreenshot() to retryScreenCapture():
Instead of trying to retake the screenshot with the same shareableContent var, startScreenCapture() is run to ensure proper monitor capturing if a monitor is added or removed after the first call to startScreenCapture().

rem/remApp.swift Outdated
Comment on lines 355 to 357
Task {
await startScreenCapture()
}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fwiw this removes the 2 second delay it had before. is this intentional? should the retry happen immediately?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! I added a fix and will do some testing

@jasonjmcghee jasonjmcghee merged commit f4f6804 into jasonjmcghee:main May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0