stopRecording

open fun stopRecording()

Tells the video recorder to stop recording. (Call from non-encoder thread.)

Returns immediately; the encoder/muxer may not yet be finished creating the movie.

TODO: have the encoder thread invoke a callback on the UI thread just before it shuts down so we can provide reasonable status UI (and let the caller know that movie encoding has completed).