Package org.apache.mina.core.buffer

Examples of org.apache.mina.core.buffer.IoBuffer.limit()


    params.put("canSeekToEnd", true);
    out.writeMap(params, new Serializer());
    buf.flip();

    if (fileMetaSize == 0) {
      fileMetaSize = buf.limit();
    }

    ITag onMetaData = new Tag(ITag.TYPE_METADATA, 0, fileMetaSize, buf, 0);
    writeTag(onMetaData);
  }
View Full Code Here


          return;
        }
       
        IoBuffer data = streampacket.getData().asReadOnlyBuffer();
       
        if (data.limit() == 0) {
          return;
        }
       
        this.byteCount += data.limit();
       
View Full Code Here

       
        if (data.limit() == 0) {
          return;
        }
       
        this.byteCount += data.limit();
       
        if (startTimeStamp == -1) {
         
          //Calculate the delta between the initial start and the first audio-packet data
         
View Full Code Here

          flvRecordingMetaDelta.setTimeStamp(0);
          flvRecordingMetaDelta.setDebugStatus("INIT AUDIO");
          flvRecordingMetaDelta.setOffset(this.offset);
          flvRecordingMetaDelta.setIsStartPadding(true);
          flvRecordingMetaDelta.setIsEndPadding(false);
          flvRecordingMetaDelta.setDataLengthPacket(data.limit());
          flvRecordingMetaDelta.setReceivedAudioDataLength(this.byteCount);
          flvRecordingMetaDelta.setStartTime(this.startedSessionTimeDate);
          flvRecordingMetaDelta.setStreamCreationTime(broadcastStream.getCreationTime());
          flvRecordingMetaDelta.setStreamCreationTimeDate(new Date(broadcastStream.getCreationTime()));
          flvRecordingMetaDelta.setPacketTimeStamp(streampacket.getTimestamp());
View Full Code Here

          flvRecordingMetaDelta.setDebugStatus("RUN AUDIO");
          flvRecordingMetaDelta.setIsStartPadding(false);
          flvRecordingMetaDelta.setLastTimeStamp(preLastTimeStamp);
          flvRecordingMetaDelta.setOffset(this.offset);
          flvRecordingMetaDelta.setIsEndPadding(false);
          flvRecordingMetaDelta.setDataLengthPacket(data.limit());
          flvRecordingMetaDelta.setReceivedAudioDataLength(this.byteCount);
          flvRecordingMetaDelta.setStartTime(this.startedSessionTimeDate);
          flvRecordingMetaDelta.setStreamCreationTime(broadcastStream.getCreationTime());
          flvRecordingMetaDelta.setStreamCreationTimeDate(new Date(broadcastStream.getCreationTime()));
          flvRecordingMetaDelta.setPacketTimeStamp(streampacket.getTimestamp());
View Full Code Here

       
              ITag tag = new Tag();
              tag.setDataType(streampacket.getDataType());
             
              //log.debug("data.limit() :: "+data.limit());
        tag.setBodySize(data.limit());
        tag.setTimestamp(timeStamp);
        tag.setBody(data);
       
        writer.writeTag(tag);
     
View Full Code Here

        return;
      }
     
      IoBuffer data = streampacket.getData().asReadOnlyBuffer();
     
      if (data.limit() == 0) {
        return;
      }
     
      this.byteCount += data.limit();
View Full Code Here

     
      if (data.limit() == 0) {
        return;
      }
     
      this.byteCount += data.limit();

      long deltaTime = 0;
     
      //log.debug("hasAudio :: "+streampacket.getDataType()); //8 == audio data
     
View Full Code Here

         
          flvRecordingMetaDelta.setDeltaTime(deltaTime);
          flvRecordingMetaDelta.setFlvRecordingMetaDataId(this.flvRecordingMetaDataId);
          flvRecordingMetaDelta.setTimeStamp(timeStamp);
          flvRecordingMetaDelta.setIsEndPadding(false);
          flvRecordingMetaDelta.setDataLengthPacket(data.limit());
          flvRecordingMetaDelta.setReceivedAudioDataLength(this.byteCount);
          flvRecordingMetaDelta.setStartTime(this.startedSessionTimeDate);
         
         
          Date current_date = new Date();
View Full Code Here

             
              ITag tag = new Tag();
              tag.setDataType(streampacket.getDataType());
             
              //log.debug("data.limit() :: "+data.limit());
        tag.setBodySize(data.limit());
        tag.setTimestamp(timeStamp);
        tag.setBody(data);
       
        //log.debug("duration: "+flvWriter.getDuration());
       
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.