Merge "Add callback for output stream." into rvc-dev