Property CurrentFile
- Namespace
- OBSStudioClient.Model
- Assembly
- OBSClient.dll
CurrentFile
Gets the path of the file of the recording: the file that OBS Studio is writing, or wrote last. It is null until the model has seen OBS Studio say one.
public string? CurrentFile { get; }
Property Value
Remarks
OBS Studio says the file in no request, only in events: when the recording has started (obs-websocket 5.5.0 and newer; older ones say it when the recording stops), when it goes on in a new file (FileChanged), and when it has stopped. So the model knows the file of a recording that it saw start or stop, and not of one that was under way when it connected, until that one is split or stopped. The value is kept when the connection is lost (like everything that the model holds, it is the last that was known), and it is not forgotten when the next recording starts: it is the file of the recording that is under way as soon as OBS Studio says that one. A handler of the change of Status finds the new file set. When the file changes, Changed and PropertyChanged tell, the property before the FileChanged event.
OBS Studio writes the path with forward slashes on every platform (C:/Videos/2026-11-10 21-59-29.mp4); the model hands it on as it is.