Records frames for a specified duration while allowing animations to run.
public Task RecordAnimationAsync(TimeSpan duration, int frameInterval = 16)
Duration to record.
Interval between frames in milliseconds.