-
Notifications
You must be signed in to change notification settings - Fork 1
Capture Frame Feature #1
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
base: main
Are you sure you want to change the base?
Conversation
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.
Code looks good. Going to test it now with the example app.
| } | ||
|
|
||
| - (void)captureLocalFrame:()string { | ||
| if (self.camera) { |
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.
Nit: Might be best to fail early instead of nesting this block of code.
if (!self.camera) {
return;
}
|
Running into errors trying to run the example app. I don't think its related to this code though. Just a haste module naming collision. Will see if I can get past it. |
| } | ||
|
|
||
| // Start the capture session | ||
| [captureSession startRunning]; |
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.
Will this work even though the camera is already being used for video capture?
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 do not know, I didn't get far enough to start testing it.
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.
@joshdhenry I saw you approved this PR. Were you able to get the example app running and test it out?
| } | ||
|
|
||
| private void captureFrame(Promise promise) { | ||
| cameraCapturer.onFrameCaptured(VideoFrame frame); |
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.
This code doesn't look like it would compile
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.
That is quite likely, I was early in piecing together code from various sources when I switched to working on the web implementation.
No description provided.