|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--quicktime.QTObject | +--quicktime.util.QTPointerRef | +--quicktime.util.QTPointer | +--quicktime.streaming.PushDataParams
This class provides a representation the native QTSPushDataParams structure that provides settings for pushing data from the Sourcer When configuring the Sourcer for use with Push Data, you may send arbitrary data. You need to provide a sample descripion and a data pointer. The time stamp is optional. If you do not provide this time stamp, the current time will be used.
Field Summary | |
static int |
kNativeSize
This is the size of this class |
Fields inherited from interface quicktime.jdirect.QuickTimeLib |
JDirect_MacOSX, libraryInstance, name |
Constructor Summary | |
PushDataParams(int vers,
SampleDescription sampleDesc,
int seed,
long time,
long duration,
QTPointer data)
Constructs an PushDataParams object based on the native QTSPushDataParams structure |
|
PushDataParams(int vers,
SampleDescription sampleDesc,
int seed,
QTPointer data)
Constructs an PushDataParams object based on the native QTSPushDataParams structure |
Method Summary | |
QTPointer |
getDataPtr()
Gets the push data |
long |
getDuration()
Get duration of the push data |
int |
getFlags()
Gets the flags |
SampleDescription |
getSampleDescription()
Get the sample description of the push data |
int |
getSampleDescSeed()
Get sample description seed of the push data |
long |
getSampleTime()
Get sample time of the push data |
int |
getVersion()
Gets the version of the push data params object |
void |
setDataPtr(QTPointer data)
Sets the push data |
void |
setDuration(long duration)
Set duration of the push data |
void |
setFlags(int flags)
Sets the flags of the push data object |
void |
setSampleDescription(SampleDescription sampleDesc)
Set the sample description of the push data |
void |
setSampleDescSeed(int seed)
Set sample description seed of the push data |
void |
setSampleTime(long time)
Set sample time of the push data |
void |
setVersion(int vers)
Sets the version of the push data params object |
java.lang.String |
toString()
Returns a string representation of this object. |
Methods inherited from class quicktime.util.QTPointer |
clone, concatenate, fromEncodedImage, fromGraphicsExporter, fromSCData, setSize |
Methods inherited from class quicktime.util.QTPointerRef |
copyFromArray, copyFromArray, copyFromArray, copyFromArray, copyFromArray, copyFromArray, copyFromArray, copyToArray, copyToArray, copyToArray, copyToArray, copyToArray, copyToArray, copyToArray, getBytes, getSize |
Methods inherited from class quicktime.QTObject |
disposeQTObject, equals, ID |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int kNativeSize
Constructor Detail |
public PushDataParams(int vers, SampleDescription sampleDesc, int seed, long time, long duration, QTPointer data) throws QTException
vers
- version of the params structurepublic PushDataParams(int vers, SampleDescription sampleDesc, int seed, QTPointer data) throws QTException
vers
- version of the params structureMethod Detail |
public void setVersion(int vers)
vers
- versionpublic int getVersion()
public void setFlags(int flags)
flags
- sourcer callback flagspublic int getFlags()
public void setSampleDescription(SampleDescription sampleDesc)
sampleDesc
- sample descriptionpublic SampleDescription getSampleDescription()
public void setSampleDescSeed(int seed)
seed
- sample description seedpublic int getSampleDescSeed()
public void setSampleTime(long time)
time
- sample time
NOTE: This function automatically adds kQTSPushDataFlag_SampleTimeIsValid to the flagspublic long getSampleTime()
public void setDuration(long duration)
duration
- duration
NOTE: This function automatically adds kQTSPushDataFlag_DurationIsValid to the flagspublic long getDuration()
public void setDataPtr(QTPointer data)
data
- push datapublic QTPointer getDataPtr()
public java.lang.String toString()
toString
in class QTPointerRef
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |