FrameBodyPOSSpublic class FrameBodyPOSS extends AbstractID3v2FrameBody implements ID3v24FrameBody, ID3v23FrameBodyPosition synchronisation frame.
This frame delivers information to the listener of how far into the
audio stream he picked up; in effect, it states the time offset of
the first frame in the stream. The frame layout is:
<Head for 'Position synchronisation', ID: "POSS"> |
Time stamp format | $xx |
Position | $xx (xx ...) |
Where time stamp format is:
$01 Absolute time, 32 bit sized, using MPEG frames as unit
$02 Absolute time, 32 bit sized, using milliseconds as unit
and position is where in the audio the listener starts to receive,
i.e. the beginning of the next frame. If this frame is used in the
beginning of a file the value is always 0. There may only be one
"POSS" frame in each tag.
For more details, please refer to the ID3 specifications:
|
Constructors Summary |
---|
public FrameBodyPOSS()Creates a new FrameBodyPOSS datatype.
// this.setObject(ObjectNumberHashMap.OBJ_TIME_STAMP_FORMAT, new Byte((byte) 0));
// this.setObject("Position", new Long(0));
| public FrameBodyPOSS(FrameBodyPOSS body)
super(body);
| public FrameBodyPOSS(byte timeStampFormat, long position)Creates a new FrameBodyPOSS datatype.
this.setObjectValue(DataTypes.OBJ_TIME_STAMP_FORMAT, timeStampFormat);
this.setObjectValue(DataTypes.OBJ_POSITION, position);
| public FrameBodyPOSS(ByteBuffer byteBuffer, int frameSize)Creates a new FrameBodyPOSS datatype.
super(byteBuffer, frameSize);
|
Methods Summary |
---|
public java.lang.String | getIdentifier()The ID3v2 frame identifier
return ID3v24Frames.FRAME_ID_POSITION_SYNC;
| protected void | setupObjectList()
objectList.add(new NumberHashMap(DataTypes.OBJ_TIME_STAMP_FORMAT, this, EventTimingTimestampTypes.TIMESTAMP_KEY_FIELD_SIZE));
objectList.add(new NumberVariableLength(DataTypes.OBJ_POSITION, this, 1));
|
|