code: public void stopBroadcasting() {
          if (mBroadcaster.isRecording()) {
              mBroadcaster.stopRecording();
              mBroadcaster.release();
          } else {
              Log.e(TAG, "stopBroadcasting called but mBroadcaster not broadcasting");
          }
      }
docs: Force this fragment to stop broadcasting.
  Useful if your application wants to stop broadcasting
  when a user leaves the Activity hosting this fragment