当前位置: 首页>>代码示例>>Java>>正文


Java ITag.getPreviousTagSize方法代码示例

本文整理汇总了Java中org.red5.io.ITag.getPreviousTagSize方法的典型用法代码示例。如果您正苦于以下问题:Java ITag.getPreviousTagSize方法的具体用法?Java ITag.getPreviousTagSize怎么用?Java ITag.getPreviousTagSize使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.red5.io.ITag的用法示例。


在下文中一共展示了ITag.getPreviousTagSize方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: injectMetaData

import org.red5.io.ITag; //导入方法依赖的package包/类
/**
 * Injects metadata (Cue Points) into a tag
 * @param cue
 * @param writer
 * @param tag
 * @return ITag tag
 */
private ITag injectMetaData(Object cue, ITag tag) {

	IMetaCue cp = (MetaCue<?, ?>) cue;
	Output out = new Output(IoBuffer.allocate(1000));
	Serializer ser = new Serializer();
	ser.serialize(out,"onCuePoint");
	ser.serialize(out,cp);

	IoBuffer tmpBody = out.buf().flip();
	int tmpBodySize = out.buf().limit();
	int tmpPreviousTagSize = tag.getPreviousTagSize();
	byte tmpDataType = IoConstants.TYPE_METADATA;
	int tmpTimestamp = getTimeInMilliseconds(cp);

	return new Tag(tmpDataType, tmpTimestamp, tmpBodySize, tmpBody, tmpPreviousTagSize);

}
 
开发者ID:cwpenhale,项目名称:red5-mobileconsole,代码行数:25,代码来源:MetaDataInjectionTest.java

示例2: injectMetaData

import org.red5.io.ITag; //导入方法依赖的package包/类
/**
 * Injects metadata (other than Cue points) into a tag
 * 
 * @param meta
 *            Metadata
 * @param tag
 *            Tag
 * @return New tag with injected metadata
 */
private ITag injectMetaData(IMetaData<?, ?> meta, ITag tag) {
	IoBuffer bb = IoBuffer.allocate(1000);
	bb.setAutoExpand(true);
	Output out = new Output(bb);
	Serializer.serialize(out, "onMetaData");
	Serializer.serialize(out, meta);
	IoBuffer tmpBody = out.buf().flip();
	int tmpBodySize = out.buf().limit();
	int tmpPreviousTagSize = tag.getPreviousTagSize();
	return new Tag(IoConstants.TYPE_METADATA, 0, tmpBodySize, tmpBody, tmpPreviousTagSize);
}
 
开发者ID:Kyunghwa-Yoo,项目名称:StitchRTSP,代码行数:21,代码来源:MetaService.java

示例3: injectMetaCue

import org.red5.io.ITag; //导入方法依赖的package包/类
/**
 * Injects metadata (Cue Points) into a tag
 * 
 * @param meta
 *            Metadata (cue points)
 * @param tag
 *            Tag
 * @return ITag tag New tag with injected metadata
 */
private ITag injectMetaCue(IMetaCue meta, ITag tag) {
	// IMeta meta = (MetaCue) cue;
	Output out = new Output(IoBuffer.allocate(1000));
	Serializer.serialize(out, "onCuePoint");
	Serializer.serialize(out, meta);

	IoBuffer tmpBody = out.buf().flip();
	int tmpBodySize = out.buf().limit();
	int tmpPreviousTagSize = tag.getPreviousTagSize();
	int tmpTimestamp = getTimeInMilliseconds(meta);

	return new Tag(IoConstants.TYPE_METADATA, tmpTimestamp, tmpBodySize, tmpBody, tmpPreviousTagSize);
}
 
开发者ID:Kyunghwa-Yoo,项目名称:StitchRTSP,代码行数:23,代码来源:MetaService.java

示例4: injectMetaData

import org.red5.io.ITag; //导入方法依赖的package包/类
/**
 * Injects metadata (other than Cue points) into a tag
 * 
 * @param meta
 *            Metadata
 * @param tag
 *            Tag
 * @return New tag with injected metadata
 */
private static ITag injectMetaData(IMetaData<?, ?> meta, ITag tag) {
    IoBuffer bb = IoBuffer.allocate(1000);
    bb.setAutoExpand(true);
    Output out = new Output(bb);
    Serializer.serialize(out, "onMetaData");
    Serializer.serialize(out, meta);
    IoBuffer tmpBody = out.buf().flip();
    int tmpBodySize = out.buf().limit();
    int tmpPreviousTagSize = tag.getPreviousTagSize();
    return new Tag(IoConstants.TYPE_METADATA, 0, tmpBodySize, tmpBody, tmpPreviousTagSize);
}
 
开发者ID:Red5,项目名称:red5-io,代码行数:21,代码来源:MetaService.java

示例5: injectMetaCue

import org.red5.io.ITag; //导入方法依赖的package包/类
/**
 * Injects metadata (Cue Points) into a tag
 * 
 * @param meta
 *            Metadata (cue points)
 * @param tag
 *            Tag
 * @return ITag tag New tag with injected metadata
 */
private static ITag injectMetaCue(IMetaCue meta, ITag tag) {
    // IMeta meta = (MetaCue) cue;
    Output out = new Output(IoBuffer.allocate(1000));
    Serializer.serialize(out, "onCuePoint");
    Serializer.serialize(out, meta);

    IoBuffer tmpBody = out.buf().flip();
    int tmpBodySize = out.buf().limit();
    int tmpPreviousTagSize = tag.getPreviousTagSize();
    int tmpTimestamp = getTimeInMilliseconds(meta);

    return new Tag(IoConstants.TYPE_METADATA, tmpTimestamp, tmpBodySize, tmpBody, tmpPreviousTagSize);
}
 
开发者ID:Red5,项目名称:red5-io,代码行数:23,代码来源:MetaService.java

示例6: injectMetaData

import org.red5.io.ITag; //导入方法依赖的package包/类
/**
 * Injects metadata (Cue Points) into a tag
 * 
 * @param cue
 * @param writer
 * @param tag
 * @return ITag tag
 */
private ITag injectMetaData(Object cue, ITag tag) {
    IMetaCue cp = (MetaCue<?, ?>) cue;
    Output out = new Output(IoBuffer.allocate(1000));
    Serializer.serialize(out, "onCuePoint");
    Serializer.serialize(out, cp);

    IoBuffer tmpBody = out.buf().flip();
    int tmpBodySize = out.buf().limit();
    int tmpPreviousTagSize = tag.getPreviousTagSize();
    byte tmpDataType = IoConstants.TYPE_METADATA;
    int tmpTimestamp = getTimeInMilliseconds(cp);

    return new Tag(tmpDataType, tmpTimestamp, tmpBodySize, tmpBody, tmpPreviousTagSize);
}
 
开发者ID:Red5,项目名称:red5-server,代码行数:23,代码来源:MetaDataInjectionTest.java

示例7: injectMetaData

import org.red5.io.ITag; //导入方法依赖的package包/类
/**
 * Injects metadata (other than Cue points) into a tag
 * 
 * @param meta
 *            Metadata
 * @param tag
 *            Tag
 * @return New tag with injected metadata
 */
private ITag injectMetaData(IMetaData<?, ?> meta, ITag tag) {
	IoBuffer bb = IoBuffer.allocate(1000);
	bb.setAutoExpand(true);
	Output out = new Output(bb);
	Serializer ser = new Serializer();
	ser.serialize(out, "onMetaData");
	ser.serialize(out, meta);
	IoBuffer tmpBody = out.buf().flip();
	int tmpBodySize = out.buf().limit();
	int tmpPreviousTagSize = tag.getPreviousTagSize();
	return new Tag(IoConstants.TYPE_METADATA, 0, tmpBodySize, tmpBody, tmpPreviousTagSize);
}
 
开发者ID:cwpenhale,项目名称:red5-mobileconsole,代码行数:22,代码来源:MetaService.java

示例8: injectMetaCue

import org.red5.io.ITag; //导入方法依赖的package包/类
/**
 * Injects metadata (Cue Points) into a tag
 * 
 * @param meta
 *            Metadata (cue points)
 * @param tag
 *            Tag
 * @return ITag tag New tag with injected metadata
 */
private ITag injectMetaCue(IMetaCue meta, ITag tag) {
	// IMeta meta = (MetaCue) cue;
	Output out = new Output(IoBuffer.allocate(1000));
	Serializer ser = new Serializer();
	ser.serialize(out, "onCuePoint");
	ser.serialize(out, meta);

	IoBuffer tmpBody = out.buf().flip();
	int tmpBodySize = out.buf().limit();
	int tmpPreviousTagSize = tag.getPreviousTagSize();
	int tmpTimestamp = getTimeInMilliseconds(meta);

	return new Tag(IoConstants.TYPE_METADATA, tmpTimestamp, tmpBodySize, tmpBody, tmpPreviousTagSize);
}
 
开发者ID:cwpenhale,项目名称:red5-mobileconsole,代码行数:24,代码来源:MetaService.java


注:本文中的org.red5.io.ITag.getPreviousTagSize方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。