|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--quicktime.QTObject | +--quicktime.streaming.Presentation
The presentation class is the basis of a broadcast. It can manage one or more streams of content. Most presentation calls can refer to a specific stream or all streams if a stream is not specified.
Fields inherited from interface quicktime.jdirect.QTStreamingLib |
JDirect_MacOSX, libraryInstance |
Constructor Summary | |
Presentation(NewPresentationParams params)
Creates a new presentation object from the presentation parameters |
Method Summary | |
void |
addSource(Stream s,
Component sourcer,
int flags)
This method adds a source component to the presenter |
static Presentation |
fromData(int dataType,
QTPointerRef data,
PresParams params)
Creates a new presentation object from data |
static Presentation |
fromDataRef(DataRef ref,
PresParams params)
(Not in carbon yet) |
static Presentation |
fromFile(QTFile file,
PresParams params)
(Not in carbon yet) |
long |
getActiveSegmentDuration(Stream s)
This method gets the duration of the active segment of the presenter |
long |
getActiveSegmentStart(Stream s)
This method gets the start time of the active segment of the presenter |
Region |
getClip(Stream s)
This method retrieves the clipping region of the presenter |
QDDimension |
getDimensions(Stream s)
This method gets the dimensions of the presenter |
boolean |
getEnable(Stream s)
This method returns true if the presentation is enabled |
int |
getFlags()
This method retrieves the flags associated with the presentation |
GraphicsMode |
getGraphicsMode(Stream s)
This method gets the graphics mode of the presenter |
QDGraphics |
getGWorld()
This method retrieves the GWorld of the presenter |
QDGraphics |
getGWorld(Stream s)
This method retrieves the GWorld of the presenter |
Stream |
getIndStream(int index)
This method gets a stream owned by the presentation object from an index |
int |
getLeftVolume(Stream s)
This method gets the left volume of the presenter |
Matrix |
getMatrix(Stream s)
This method gets the matrix of the presenter |
int |
getNumSources(Stream s)
This method returns the number of source components for the presenter |
int |
getNumStreams()
This method gets the number of streams associated with the presentation |
Pict |
getPicture(Stream s)
This method gets the picture associated with the presenter |
int |
getPlayHints(Stream s)
This method gets the playing hints of the presenter |
float |
getPreferredRate()
This method gets the preferred rate of the presentation |
boolean |
getPresenting(Stream s)
This method returns the presenter's presentation mode |
int |
getRightVolume(Stream s)
This method gets the right volume of the presenter |
TimeBase |
getTimeBase()
This method retrieves the time base associated with the presentation |
int |
getTimeScale()
This method retrieves the time scale associated with the presentation |
int |
getTotalDataRate()
This method retreives the total data rate for all streams |
boolean |
hasCharacteristic(Stream s,
int characteristic)
This method returns true if the presentation has a specific characteristic |
void |
idle(PresIdleParams params)
Provides processing time to the presentation component After starting a presentation, call this function as often as possible, until you stop the presentation by calling stop. |
void |
invalidateRegion(Region updateRgn)
The invalidate function allows you to tell the presentation that it must refresh its display |
void |
preroll()
This method previews all streams in the presentation with default parameters |
void |
preroll(int timeValue,
float rate,
int flags)
This method previews all streams in the presentation |
void |
preroll(Stream s,
int timeValue,
float rate,
int flags)
This method previews the presentation with a specific stream |
void |
preroll(Stream s,
long timeValue,
float rate,
int flags)
This method previews the presentation with a specific stream |
void |
preview()
This method previews the presentation with all streams |
void |
preview(long timeValue,
float rate,
int flags)
This method previews the presentation with all streams |
void |
preview(Stream s,
long timeValue,
float rate,
int flags)
This method previews the presentation |
void |
removeSource(Stream s,
Component sourcer,
int flags)
This method removes a source component from the presenter |
void |
setActiveSegment(Stream s,
long startTime,
long duration)
This method sets the active segment of the presenter |
void |
setClip(Stream s,
Region rgn)
This method sets the clipping region of the presenter |
void |
setDimensions(Stream s,
float width,
float height)
This method sets the dimensions of the presenter |
void |
setDimensions(Stream s,
QDDimension dim)
This method sets the dimensions of the presenter |
void |
setEnable(Stream s,
boolean enableMode)
This method specifies whether the presentation is enabled |
void |
setFlags(int flags,
int mask)
This method sets the flags associated with the presentation |
void |
setGraphicsMode(Stream s,
int mode,
QDColor opColor)
This method sets the graphics mode of the presenter |
void |
setGWorld(QDGraphics gWorld)
This method sets the GWorld of the presenter (uses the main device as the default GDevice) |
void |
setGWorld(Stream s,
QDGraphics gWorld)
This method sets the GWorld of the presenter (uses the main device as the default GDevice) |
void |
setGWorld(Stream s,
QDGraphics gWorld,
GDevice gd)
This method sets the GWorld of the presenter |
void |
setMatrix(Stream s,
Matrix matrix)
This method sets the matrix of the presenter |
void |
setPlayHints(Stream s,
int flags,
int mask)
This method sets the playing hints of the presenter |
void |
setPreferredRate(float rate,
int flags)
This method sets the preferred rate of the presentation |
void |
setPresenting(Stream s,
boolean inPresentingMode)
This method toggles the presenter's presentation mode |
void |
setVolumes(Stream s,
int leftVol,
int rightVol)
This method sets the right and left volumes of the presenter |
void |
skipTo(int timeValue)
This method skips to a specific point in the presentation |
void |
skipTo(long timeValue)
This method skips to a specific point in the presentation (64 bit version) |
void |
start()
This method starts all streams associated with the presentation using no flags |
void |
start(int flags)
This method starts all streams associated with the presentation |
void |
start(Stream s,
int flags)
This method starts the specific stream associated with the presentation |
void |
stop()
This method stops the presentation of all streams |
void |
stop(Stream s,
int flags)
This method stops the presentation of a specific stream |
Methods inherited from class quicktime.QTObject |
disposeQTObject, equals, ID, toString |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Presentation(NewPresentationParams params) throws QTException
params
- NewPresentationParams object containing information about the specified presentationMethod Detail |
public static Presentation fromData(int dataType, QTPointerRef data, PresParams params) throws QTException
dataType
- an OSType specifying the type of the datadata
- an array of integers containg the actual data for the presentation objectparams
- the PresParams object containing additional configuration informationpublic static Presentation fromFile(QTFile file, PresParams params) throws QTException
public static Presentation fromDataRef(DataRef ref, PresParams params) throws QTException
public void setFlags(int flags, int mask) throws QTException
public int getFlags() throws QTException
public TimeBase getTimeBase() throws QTException
public int getTimeScale() throws QTException
public int getTotalDataRate() throws QTException
public boolean hasCharacteristic(Stream s, int characteristic) throws QTException
characteristic
- OSType describing the characteristicpublic void preview() throws QTException
public void preview(long timeValue, float rate, int flags) throws QTException
public void preview(Stream s, long timeValue, float rate, int flags) throws QTException
public void preroll() throws QTException
public void preroll(int timeValue, float rate, int flags) throws QTException
public void preroll(Stream s, int timeValue, float rate, int flags) throws QTException
public void preroll(Stream s, long timeValue, float rate, int flags) throws QTException
public void start() throws QTException
public void start(int flags) throws QTException
flags
- the presentation flags
public void start(Stream s, int flags) throws QTException
s
- streamflags
- the presentation flags
public void idle(PresIdleParams params)
params
- PresIdleParams
public void invalidateRegion(Region updateRgn) throws QTException
updateRgn
- Indicates the part of the QDGraphics that has been changed
If you set this parameter to null, the presentation uses the current visible regionpublic void skipTo(int timeValue) throws QTException
timeValue
- the timeValue to skip to
public void skipTo(long timeValue) throws QTException
timeValue
- the time value to skip to
public void stop() throws QTException
public void stop(Stream s, int flags) throws QTException
s
- streamflags
- the presentation flags
public int getNumStreams()
public Stream getIndStream(int index) throws QTException
index
- index of the stream to retrievepublic void setPreferredRate(float rate, int flags) throws QTException
rate
- the rate of the presentationflags
- additional flags
public float getPreferredRate() throws QTException
public void setEnable(Stream s, boolean enableMode) throws QTException
s
- streamenableMode
- true if the presentation should be enabled
public boolean getEnable(Stream s) throws QTException
s
- streampublic void setPresenting(Stream s, boolean inPresentingMode) throws QTException
s
- streaminPresentingMode
- sets the presentation mode to be presenting if true
public boolean getPresenting(Stream s) throws QTException
s
- streampublic void setActiveSegment(Stream s, long startTime, long duration) throws QTException
s
- streamstartTime
- the start time of the active segmentduration
- the duration of the active segment
public long getActiveSegmentStart(Stream s) throws QTException
s
- streampublic long getActiveSegmentDuration(Stream s) throws QTException
s
- streampublic void setPlayHints(Stream s, int flags, int mask) throws QTException
s
- streamflags
- the flags of the presentermask
- the masks of the presenter
public int getPlayHints(Stream s) throws QTException
s
- streampublic void setGWorld(Stream s, QDGraphics gWorld, GDevice gd) throws QTException
s
- streamgWorld
- qdGraphics object representing the gWorldgd
- GDevice
public void setGWorld(Stream s, QDGraphics gWorld) throws QTException
s
- streamgWorld
- qdGraphics object representing the gWorld
public void setGWorld(QDGraphics gWorld) throws QTException
public QDGraphics getGWorld(Stream s) throws QTException
s
- streampublic QDGraphics getGWorld() throws QTException
s
- streampublic void setClip(Stream s, Region rgn) throws QTException
s
- streamrgn
- the clipping region
public Region getClip(Stream s) throws QTException
s
- streampublic void setMatrix(Stream s, Matrix matrix) throws QTException
s
- streammatrix
- the matrix
public Matrix getMatrix(Stream s) throws QTException
s
- streampublic void setDimensions(Stream s, float width, float height) throws QTException
s
- streamwidth
- the width of the presenterheight
- the height of the presenter
public void setDimensions(Stream s, QDDimension dim) throws QTException
s
- streamdim
- dimensions of the presenter
public QDDimension getDimensions(Stream s) throws QTException
s
- streampublic void setGraphicsMode(Stream s, int mode, QDColor opColor) throws QTException
s
- streammode
- the graphics mode of the presenteropColor
- the QDColor associated with the graphics mode (operand color)
public GraphicsMode getGraphicsMode(Stream s) throws QTException
s
- streampublic Pict getPicture(Stream s) throws QTException
s
- streampublic void setVolumes(Stream s, int leftVol, int rightVol) throws QTException
s
- streamleftVol
- left sound channel volumerightVol
- right sound channel volume
public int getRightVolume(Stream s) throws QTException
s
- streampublic int getLeftVolume(Stream s) throws QTException
s
- streampublic void addSource(Stream s, Component sourcer, int flags) throws QTException
s
- streamsourcer
- source component to be addedflags
- additional flags
public void removeSource(Stream s, Component sourcer, int flags) throws QTException
s
- streamsourcer
- source component to be removedflags
- additional flags
public int getNumSources(Stream s)
s
- stream
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |