public class ImmutableTag extends Object implements org.red5.io.ITag
AVC_PACKET_TYPE_END_OF_SEQUENCE, AVC_PACKET_TYPE_NALU, AVC_PACKET_TYPE_SEQUENCE_HEADER, FLAG_CODEC_H263, FLAG_CODEC_SCREEN, FLAG_CODEC_VP6, FLAG_FORMAT_ADPCM, FLAG_FORMAT_MP3, FLAG_FORMAT_NELLYMOSER, FLAG_FORMAT_NELLYMOSER_8_KHZ, FLAG_FORMAT_RAW, FLAG_FRAMETYPE_DISPOSABLE, FLAG_FRAMETYPE_GENERATED_KEYFRAME, FLAG_FRAMETYPE_INFO, FLAG_FRAMETYPE_INTERFRAME, FLAG_FRAMETYPE_KEYFRAME, FLAG_RATE_11_KHZ, FLAG_RATE_22_KHZ, FLAG_RATE_44_KHZ, FLAG_RATE_48_KHZ, FLAG_RATE_5_5_KHZ, FLAG_SIZE_16_BIT, FLAG_SIZE_8_BIT, FLAG_TYPE_MONO, FLAG_TYPE_STEREO, INFO_PACKET_SEEK_END, INFO_PACKET_SEEK_START, MASK_SOUND_FORMAT, MASK_SOUND_RATE, MASK_SOUND_SIZE, MASK_SOUND_TYPE, MASK_VIDEO_CODEC, MASK_VIDEO_FRAMETYPE, TYPE_AUDIO, TYPE_ENCRYPTED, TYPE_ENCRYPTED_AUDIO, TYPE_ENCRYPTED_METADATA, TYPE_ENCRYPTED_VIDEO, TYPE_METADATA, TYPE_VIDEO| Modifier and Type | Method and Description |
|---|---|
static ImmutableTag |
build(byte dataType,
int timestamp) |
static ImmutableTag |
build(byte dataType,
int timestamp,
byte[] data,
int previousTagSize) |
static ImmutableTag |
build(byte dataType,
int timestamp,
org.apache.mina.core.buffer.IoBuffer data) |
static ImmutableTag |
build(byte dataType,
int timestamp,
org.apache.mina.core.buffer.IoBuffer data,
int previousTagSize) |
static ImmutableTag |
build(byte dataType,
int timestamp,
Object data) |
org.apache.mina.core.buffer.IoBuffer |
getBody()
Return the body IoBuffer
|
int |
getBodySize()
Return the size of the body
|
org.apache.mina.core.buffer.IoBuffer |
getData() |
byte |
getDataType()
Get the data type
|
int |
getPreviousTagSize()
Return previous tag size
|
int |
getTimestamp()
Return the timestamp
|
void |
setBody(org.apache.mina.core.buffer.IoBuffer body) |
void |
setBodySize(int size) |
void |
setDataType(byte datatype) |
void |
setPreviousTagSize(int size) |
void |
setTimestamp(int timestamp) |
String |
toString()
Prints out the contents of the tag
|
public byte getDataType()
getDataType in interface org.red5.io.ITagpublic int getTimestamp()
getTimestamp in interface org.red5.io.ITagpublic void setTimestamp(int timestamp)
setTimestamp in interface org.red5.io.ITagpublic org.apache.mina.core.buffer.IoBuffer getData()
getData in interface org.red5.io.ITagpublic org.apache.mina.core.buffer.IoBuffer getBody()
getBody in interface org.red5.io.ITagpublic int getBodySize()
getBodySize in interface org.red5.io.ITagpublic int getPreviousTagSize()
getPreviousTagSize in interface org.red5.io.ITagpublic void setBody(org.apache.mina.core.buffer.IoBuffer body)
setBody in interface org.red5.io.ITagpublic void setBodySize(int size)
setBodySize in interface org.red5.io.ITagpublic void setDataType(byte datatype)
setDataType in interface org.red5.io.ITagpublic void setPreviousTagSize(int size)
setPreviousTagSize in interface org.red5.io.ITagpublic String toString()
public static ImmutableTag build(byte dataType, int timestamp)
public static ImmutableTag build(byte dataType, int timestamp, Object data)
public static ImmutableTag build(byte dataType, int timestamp, org.apache.mina.core.buffer.IoBuffer data)
public static ImmutableTag build(byte dataType, int timestamp, byte[] data, int previousTagSize)
public static ImmutableTag build(byte dataType, int timestamp, org.apache.mina.core.buffer.IoBuffer data, int previousTagSize)
Copyright © 2005–2017 Red5. All rights reserved.