code: def pause(self) -> None:
          
          with self.__state_lock:
              if self.__state == DataChannelBuffer.State.started:
                  self.__state = DataChannelBuffer.State.paused
docs: Pause recording.
  
          Thread safe and UI safe.