Exemplo n.º 1
0
 public void ConnectToServer() {
   // if is currently streaming, ignore request.
   if (tcpClient != null && audioStreamer != null && audioStreamer.isStreaming()) return;
   // closeConnection(); //not closing, since sometimes remains open.
   sendMessageUsingTcp(
       uniqueId + Consts.commandChar + Consts.requestSendAudio + Consts.commandChar);
 }
Exemplo n.º 2
0
 private void openAudioStream() {
   audioStreamer =
       AudioStreamer.getAudioStreamerAndStart(udpIpAddr, udpIpPort, userNotifierHandler);
 }
Exemplo n.º 3
0
 public void stopStreaming() {
   if (audioStreamer != null) {
     audioStreamer.stopStreaming();
     audioStreamer = null;
   }
 }