/**
  * Force this fragment to stop broadcasting. Useful if your application wants to stop broadcasting
  * when a user leaves the Activity hosting this fragment
  */
 public void stopBroadcasting() {
   if (mBroadcaster.isRecording()) {
     mBroadcaster.stopRecording();
     mBroadcaster.release();
   }
 }
 @Override
 public void onDestroy() {
   super.onDestroy();
   if (mBroadcaster != null && !mBroadcaster.isRecording()) mBroadcaster.release();
 }