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

Overrite the recording configuration doesn't work #10

Open
loongtail opened this issue Sep 4, 2019 · 1 comment
Open

Overrite the recording configuration doesn't work #10

loongtail opened this issue Sep 4, 2019 · 1 comment

Comments

@loongtail
Copy link

loongtail commented Sep 4, 2019

I followed the doc to overrite the recording configuration and push video to rtmp://127.0.0.1/record/StreamName, but vs always show me that

'System.IO.DirectoryNotFoundException' in System.Private.CoreLib.dll

even if I don't change anything, there is no video saved in default directory.

FInally I saved the video successfully by changing the
public virtual string RecordPath { get; set; }= @"Record"
to
public virtual string RecordPath { get; set; } = System.IO.Directory.GetCurrentDirectory()

Are the instructions correct? Or Did I do something wrong above?

By the way , is there any method to saved the video at regular time or regular size, i don't want to lose the video after the program terminated by accident.

@Dobriii
Copy link

Dobriii commented Apr 22, 2021

Change RtmpServerOptions -> RegisterCommonServices. For registration use PreserveExistingDefaults.
https://autofaccn.readthedocs.io/en/latest/register/registration.html#default-registrations

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

No branches or pull requests

2 participants