release

fun release()

Stop stream, record and preview and then release all resources. You must call it after finish all the work.