fm.liveswitch.MediaControlFrame Class Reference

A media control frame. More...

Public Member Functions

int getByte1Last5Bits ()
 Gets the last 5 bits of the first byte. More...
 
fm.liveswitch.DataBuffer getDataBuffer ()
 Gets the buffer. More...
 
fm.liveswitch.DataBuffer getPayload ()
 Gets the payload. More...
 
int getPayloadLengthWithPadding ()
 Gets the length of the payload, in bytes, with padding. More...
 
int getPayloadType ()
 Gets the payload type. More...
 
String getStreamId ()
 Gets the stream ID. More...
 
int getVersion ()
 Gets the version. More...
 
 MediaControlFrame ()
 Initializes a new instance of the fm.liveswitch.MediaControlFrame class. More...
 
 MediaControlFrame (fm.liveswitch.DataBuffer buffer)
 Initializes a new instance of the fm.liveswitch.MediaControlFrame class. More...
 
void setByte1Last5Bits (int value)
 Sets the last 5 bits of the first byte. More...
 
void setPayloadType (int value)
 Sets the payload type. More...
 
void setVersion (int value)
 Sets the version. More...
 
- Public Member Functions inherited from fm.liveswitch.Dynamic
java.util.HashMap< String, Object > getDynamicProperties ()
 Gets all dynamic properties on this instance. More...
 
Object getDynamicValue (String key)
 Gets a property value from the local cache. More...
 
void setDynamicValue (String key, Object value)
 Sets a property value in the local cache. More...
 
boolean unsetDynamicValue (String key)
 Removes a property value from the local cache. More...
 

Static Public Member Functions

static fm.liveswitch.MediaControlFrame[] addControlFrame (fm.liveswitch.MediaControlFrame[] controlFrames, fm.liveswitch.MediaControlFrame addControlFrame, int index)
 Adds a control frame to an array. More...
 
static fm.liveswitch.MediaControlFrame[] addControlFrames (fm.liveswitch.MediaControlFrame[] controlFrames, fm.liveswitch.MediaControlFrame[] addControlFrames, int index)
 Adds control frames to an array. More...
 
static int getFixedHeaderLength ()
 Gets the length of the fixed header. More...
 
static fm.liveswitch.MediaControlFrame[] parse (fm.liveswitch.DataBuffer dataBuffer)
 Parses a data buffer into an array of control frames. More...
 
static fm.liveswitch.MediaControlFrame[] removeControlFrame (fm.liveswitch.MediaControlFrame[] controlFrames, int index)
 Removes a control frame from an array. More...
 

Protected Member Functions

void setDataBuffer (fm.liveswitch.DataBuffer value)
 Sets the buffer. More...
 
void setPayloadLengthWithPadding (int value)
 Sets the length of the payload, in bytes, with padding. More...
 
- Protected Member Functions inherited from fm.liveswitch.Dynamic
 Dynamic ()
 
- Protected Member Functions inherited from fm.liveswitch.Serializable
boolean getIsDirty ()
 Gets a value indicating whether this instance is dirty. More...
 
 Serializable ()
 Initializes a new instance of the fm.liveswitch.Serializable class. More...
 
void setIsDirty (boolean value)
 Sets a value indicating whether this instance is dirty. More...
 

Detailed Description

A media control frame.

Constructor & Destructor Documentation

◆ MediaControlFrame() [1/2]

fm.liveswitch.MediaControlFrame.MediaControlFrame ( )

Initializes a new instance of the fm.liveswitch.MediaControlFrame class.

◆ MediaControlFrame() [2/2]

fm.liveswitch.MediaControlFrame.MediaControlFrame ( fm.liveswitch.DataBuffer  buffer)

Initializes a new instance of the fm.liveswitch.MediaControlFrame class.

Parameters
bufferThe buffer.

Member Function Documentation

◆ addControlFrame()

static fm.liveswitch.MediaControlFrame [] fm.liveswitch.MediaControlFrame.addControlFrame ( fm.liveswitch.MediaControlFrame[]  controlFrames,
fm.liveswitch.MediaControlFrame  addControlFrame,
int  index 
)
static

Adds a control frame to an array.

Parameters
controlFramesThe control frames.
addControlFrameThe control frame to add.
indexThe insert index.
Returns
A new control frame array.

◆ addControlFrames()

static fm.liveswitch.MediaControlFrame [] fm.liveswitch.MediaControlFrame.addControlFrames ( fm.liveswitch.MediaControlFrame[]  controlFrames,
fm.liveswitch.MediaControlFrame[]  addControlFrames,
int  index 
)
static

Adds control frames to an array.

Parameters
controlFramesThe control frames.
addControlFramesThe control frames to add.
indexThe insert index.
Returns
A new control frame array.

◆ getByte1Last5Bits()

int fm.liveswitch.MediaControlFrame.getByte1Last5Bits ( )

Gets the last 5 bits of the first byte.

◆ getDataBuffer()

fm.liveswitch.DataBuffer fm.liveswitch.MediaControlFrame.getDataBuffer ( )

Gets the buffer.

◆ getFixedHeaderLength()

static int fm.liveswitch.MediaControlFrame.getFixedHeaderLength ( )
static

Gets the length of the fixed header.

◆ getPayload()

fm.liveswitch.DataBuffer fm.liveswitch.MediaControlFrame.getPayload ( )

Gets the payload.

◆ getPayloadLengthWithPadding()

int fm.liveswitch.MediaControlFrame.getPayloadLengthWithPadding ( )

Gets the length of the payload, in bytes, with padding.

◆ getPayloadType()

int fm.liveswitch.MediaControlFrame.getPayloadType ( )

Gets the payload type.

◆ getStreamId()

String fm.liveswitch.MediaControlFrame.getStreamId ( )

Gets the stream ID.

◆ getVersion()

int fm.liveswitch.MediaControlFrame.getVersion ( )

Gets the version.

◆ parse()

static fm.liveswitch.MediaControlFrame [] fm.liveswitch.MediaControlFrame.parse ( fm.liveswitch.DataBuffer  dataBuffer)
static

Parses a data buffer into an array of control frames.

Parameters
dataBufferThe data buffer.

◆ removeControlFrame()

static fm.liveswitch.MediaControlFrame [] fm.liveswitch.MediaControlFrame.removeControlFrame ( fm.liveswitch.MediaControlFrame[]  controlFrames,
int  index 
)
static

Removes a control frame from an array.

Parameters
controlFramesThe control frames.
indexThe delete index.
Returns
A new control frame array.

◆ setByte1Last5Bits()

void fm.liveswitch.MediaControlFrame.setByte1Last5Bits ( int  value)

Sets the last 5 bits of the first byte.

◆ setDataBuffer()

void fm.liveswitch.MediaControlFrame.setDataBuffer ( fm.liveswitch.DataBuffer  value)
protected

Sets the buffer.

◆ setPayloadLengthWithPadding()

void fm.liveswitch.MediaControlFrame.setPayloadLengthWithPadding ( int  value)
protected

Sets the length of the payload, in bytes, with padding.

◆ setPayloadType()

void fm.liveswitch.MediaControlFrame.setPayloadType ( int  value)

Sets the payload type.

◆ setVersion()

void fm.liveswitch.MediaControlFrame.setVersion ( int  value)

Sets the version.