Package org.red5.server.net.rtmp.event

Examples of org.red5.server.net.rtmp.event.VideoData.release()


      ScopeClientWorker cl = (ScopeClientWorker) r;
      log.debug("Worker: {} shared object: {}", cl.getId(), cl.getSharedObject().getAttributes());
    }
    if (!persistent) {
      assertTrue(so.isAcquired());
      so.release();
      assertFalse(so.isAcquired());
    }
    app.stop(appScope);

    //    IScope room1 = ScopeUtils.resolveScope(appScope, "/junit/room1");
View Full Code Here


              AudioData audioConf = new AudioData(config.asReadOnlyBuffer());
              try {
                log.debug("Setting decoder configuration for recording");
                listener.getFileConsumer().setAudioDecoderConfiguration(audioConf);
              } finally {
                audioConf.release();
              }
            }
          } else {
            log.debug("No decoder configuration available, audioCodec is null.");
          }
View Full Code Here

              AudioData audioConf = new AudioData(config.asReadOnlyBuffer());
              try {
                log.debug("Setting decoder configuration for recording");
                listener.getFileConsumer().setAudioDecoderConfiguration(audioConf);
              } finally {
                audioConf.release();
              }
            }
          } else {
            log.debug("No decoder configuration available, audioCodec is null.");
          }
View Full Code Here

              RTMPMessage confMsg = RTMPMessage.build(conf);
              try {
                log.debug("Pushing decoder configuration");
                msgOut.pushMessage(confMsg);
              } finally {
                conf.release();
              }
            }
          } else {
            log.debug("No decoder configuration available, audioCodec is null");
          }
View Full Code Here

        data.free();
        out.flip();
        data = null;
      }
    }
    message.release();
    return out;
  }

  /**
   * Determine if this message should be dropped for lateness. Live publish data
View Full Code Here

      // the FLVReader will issue a metadata tag of ts 0
      // even if it is seeked to somewhere in the middle
      // which will cause the stream to wait too long.
      // Is this an FLVReader's bug?
      if (!(rtmpEvent instanceof VideoData) && !(rtmpEvent instanceof AudioData) && rtmpEvent.getTimestamp() == 0) {
        rtmpEvent.release();
        nextRTMPMessage = getNextRTMPMessage();
        if (nextRTMPMessage == null) {
          onItemEnd();
          return;
        }
View Full Code Here

        log.error("Exception", t);
      }
      // XXX this may be causing 'missing' data if previous methods are
      // not making copies before buffering etc..
      if (message != null) {
        message.release();
      }
    }
  }

  /** {@inheritDoc} */
 
View Full Code Here

    } catch (RuntimeException e) {
      // TODO Auto-generated catch block
      log.error("Exception", e);
    }
    if (message != null) {
      message.release();
    }
  }

  /** {@inheritDoc} */
    public void messageSent(RTMPConnection conn, Object message) {
View Full Code Here

    }

    try {
      data = encodeMessage(rtmp, header, message);
    } finally {
      message.release();
    }

    if (data.position() != 0) {
      data.flip();
    } else {
View Full Code Here

    }
    if (message instanceof Unknown) {
      log.info(message.toString());
    }
    if (message != null) {
      message.release();
    }   
  }
 
    public void messageSent(RTMPConnection conn, Object message) {
    if (log.isDebugEnabled()) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.