-
Notifications
You must be signed in to change notification settings - Fork 68
Add NativeCapture #156
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
Add NativeCapture #156
Conversation
Add test code in Babylon React Native
NativeCapture needs added to these different platform specific library references. This should generate linker errors with pr ci Refers to: Modules/@babylonjs/react-native-windows/windows/BabylonReactNative/BabylonReactNative.vcxproj:205 in a5334b1. [](commit_id = a5334b1, deletion_comment = False) |
chrisfromwork
left a comment
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.
NativeCapture needs added to these different platform specific library references in BabylonReactNative.vcxproj. This should theoretically generate linker errors with pr ci
…ce and not packaged libs)
|
|
||
| export type CaptureCallback = (capture: CapturedFrame) => void; | ||
|
|
||
| declare class NativeCapture { |
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.
long term are we planning to have this defined somewhere in Babylon.js?
The
NativeCaptureplugin was recently added to BabylonNative. This change pulls it into BabylonReactNative and adds a TypeScript wrapper. It also logs a warning if it is used since:This works toward (but doesn't fully solve) BabylonJS/BabylonNative#562
FYI @bonnyMahajan10