-
Notifications
You must be signed in to change notification settings - Fork 56
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
Only honoring the initial camera view styles #7
Comments
Hey ben, |
We're definitely re-rendering. The recorder is being required into two separate components with entirely different states and styles. To get around the issue (in our tight timeline) we're using both your component and react-native-camera. I hope to take more time to figure out the underlying reasons and to add saveToCamera (when I do, I'll submit a PR.) |
Oh, just found the issue. It's because of the view init function. It returns any previously initialized view. https://github.com/maxs15/react-native-screcorder/blob/master/ios/RNRecorderManager.m#L24-L31 |
You're right ! |
@maxs15 Thanks for this awesome lib! Is this PR still coming? edit: Would be perfect to initialise the camera upfront and show it later (in a different place) instantaneously (and destroy it via method too)! At the moment it takes quite a'lot of time to initialise (especially if you changed the camera from back to front last time) |
Sorry, totally forgot about it. |
@maxs15 I did not change my view styles, so I don't know about that. But it will not re-render my sub-components anymore. Before that, all my sub-components (e.g. segmentBar, controls, ..) got duplicated. Please have a look at my new issue also. Thanks 👍 |
I don't get it why this behaves so differently on the first appearance? I changed this code // Alloc UI element
if (_recorderView == nil) {
_recorderView = [[RNRecorder alloc] initWithEventDispatcher:self.bridge.eventDispatcher];
}
return _recorderView; to this code (to handle multiple videos etc., which is working great with this version!): _recorderView = nil;
_recorderView = [[RNRecorder alloc] initWithEventDispatcher:self.bridge.eventDispatcher];
return _recorderView; But now the big problem is that I have to transition two times to the same record view before I can save my recorded video.... (see issue #9) Anyone have an Idea? |
@maxs15 any news here? I can not write Objective-C. I would really like to know, why I have to render the Also your actual implementation (without my "fix" above), does not allow to record multiple videos and save them in different files (but it can save the Video on the first time Thank you! |
It appears that there is some issues with SCRecorder when creating multiple instances, no news for now I currently don't have much time to investigate this issue.. |
We're running into an issue where we have a small version of the camera in an initial component. To let people know that we're going to be recording their response. When we transition to the next component even though we supply a different set of dimensions in the styles the camera renders with the previously specified styles.
Bee Tee Dubz - Awesome job on the library!
The text was updated successfully, but these errors were encountered: