RenderHeads / UnityPlugin-AVProMovieCapture

AVPro Movie Capture is a Unity Plugin for advanced video capture to AVI/MP4/MOV files
https://renderheads.com/products/avpro-movie-capture/
48 stars 8 forks source link

Notification when error handling #281

Open artoonie opened 1 year ago

artoonie commented 1 year ago

Is your feature request related to a problem? Please describe. When ActualErrorHandler is called, it would be nice to have a UnityEvent or similar to be notified that the capture is canceled.

Describe the solution you'd like ErrorReceived.Invoke(domain, code, message) so I can ErrorReceived.AddListener(HandleErrors) on my end

Describe alternatives you've considered I currently have to listen for capture stopping unexpectedly via IsCapturing, but that requires some subtlety because we could be off by a frame or two (e.g. _waitForEndOfFrame, onApplicationPause, and others update IsCapturing). This isn't too hard to work around but it is fragile. I just wait for 3 consecutive unexpected capturing states.

Additional context This is specifically due to Apple Issue Error: domain: 1, code: -11819, message: Cannot Complete Action, which cancels capture.

stale[bot] commented 9 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.