code: public void receiveAudio(boolean receive) {
          IConnection conn = Red5.getConnectionLocal();
          if (conn instanceof IStreamCapableConnection) {
              IStreamCapableConnection streamConn = (IStreamCapableConnection) conn;
              Number streamId = conn.getStreamId();
              IClientStream stream = streamConn.getStreamById(streamId);
              if (stream != null && stream instanceof ISubscriberStream) {
                  ISubscriberStream subscriberStream = (ISubscriberStream) stream;
                  subscriberStream.receiveAudio(receive);
              }
          }
      }
docs: {@inheritDoc}