Package org.red5.io.amf

Examples of org.red5.io.amf.Output.writeMap()


    }
    if (audioCodecId != null) {
      params.put("audiocodecid", audioCodecId.intValue());
    }
    params.put("canSeekToEnd", true);
    out.writeMap(params, new Serializer());
    buf.flip();

    if (fileMetaSize == 0) {
      fileMetaSize = buf.limit();
    }
View Full Code Here


        IoBuffer buf = IoBuffer.allocate(1024);
        buf.setAutoExpand(true);
        Output out = new Output(buf);
        out.writeString(onCueOrOnMeta);
        out.writeMap(params);

        buf.flip();
        return new Notify(buf);
      } else if ("onFI".equals(setData)) {
        // the onFI request contains 2 items relative to the publishing client application
View Full Code Here

      props.put("details", currentItem.getName());
      props.put("description", String.format("Transitioned to %s", currentItem.getName()));
      props.put("clientId", streamId);
      props.put("isFastPlay", false);
    }
    out.writeMap(props);
    buf.flip();

    IRTMPEvent event = new Notify(buf);
    if (lastMessageTs > 0) {
      event.setTimestamp(lastMessageTs);
View Full Code Here

      Map<Object, Object> props = new HashMap<Object, Object>();
      props.put("code", code);
      props.put("level", "status");
      props.put("duration", duration);
      props.put("bytes", bytes);
      out.writeMap(props, new Serializer());
      buf.flip();

      IRTMPEvent event = new Notify(buf);
      if (lastMessage != null) {
        int timestamp = lastMessage.getTimestamp();
View Full Code Here

    }
    if (audioCodecId != null) {
      params.put("audiocodecid", audioCodecId.intValue());
    }
    params.put("canSeekToEnd", true);
    out.writeMap(params, new Serializer());
    buf.flip();

    if (fileMetaSize == 0) {
      fileMetaSize = buf.limit();
    }
View Full Code Here

    props.put("audiocodecid", IoConstants.FLAG_FORMAT_MP3);
    if (dataRate > 0) {
      props.put("audiodatarate", dataRate);
    }
    props.put("canSeekToEnd", true);
    out.writeMap(props, new Serializer());
    buf.flip();

    ITag result = new Tag(IoConstants.TYPE_METADATA, 0, buf.limit(), null,
        prevSize);
    result.setBody(buf);
View Full Code Here

            // Audio codec id
            props.put("audiocodecid", (frametype & MASK_SOUND_FORMAT) >> 4);
      setCurrentPosition(old);
    }
    props.put("canSeekToEnd", true);
    out.writeMap(props, new Serializer());
    buf.flip();

    ITag result = new Tag(IoConstants.TYPE_METADATA, 0, buf.limit(), null,
        0);
    result.setBody(buf);
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.