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

Update the currentFrameConfig when switchToPreviewFrame changes configs #18

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

disbelief
Copy link

I was running into a problem when toggling between two different preview frame configs using the VideoRecorder.switchToPreviewFrame({ id: 'someId' }) function.

The problem is, while switchToPreviewFrame does update the configuration correctly, it does not update it's internal pointer to the currentFrameConfig. Thus, if I want to know what the currentFrameConfig is after switching, it can no longer be relied upon to be accurate.

I'm sure there are probably some build steps and/or spec changes that are necessary to ship with this PR but wanted to propose the logical change first.

Base automatically changed from master to main March 9, 2021 15:56
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.

1 participant