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

Is updateOptions() to be used if I want change the directory where video is saved? #57

Open
tarunchandnrt opened this issue Sep 14, 2021 · 0 comments
Assignees
Labels
question Further information is requested

Comments

@tarunchandnrt
Copy link

I have setup the recorder like so:

recorder = ScrCast.use(this);
recorder.updateOptions(GetDefaultOptions());

and the GetDefaultOptions() function is defined as follows:

private static Options GetDefaultOptions() {
            return new Options(
                    new VideoConfig(),
                    new StorageConfig("somedir", Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DCIM)),
                    new NotificationConfig(),
                    false,
                    0,
                    true
            );
    }

I was assuming that updateOptions function would do the needful but when I inspect the recorder object in the debugger, the outputDirectory for the recorder seems to be different from that of the options object of the recorder.

How am I supposed to change the directory where the video is saved.

@tarunchandnrt tarunchandnrt added the question Further information is requested label Sep 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants