public class MediaPlayer extends JMEContainer implements IMediaPlayer, IInitable, IItemCachable, IActionOnVideoEndListener
com.jme3.scene.Spatial.CullHintINestable.IChildrenChangedListener| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CACHABLE_TYPE
The Constant CACHABLE_TYPE.
|
KEY_JMEITEMDATA| Constructor and Description |
|---|
MediaPlayer(java.lang.String name,
java.util.UUID uuid)
Instantiates a new media player.
|
| Modifier and Type | Method and Description |
|---|---|
GalleryItemDatabaseFormat |
deconstruct(java.lang.String loc)
Deconstruct.
|
void |
destroy()
Destroy.
|
java.lang.String |
isCached()
Checks if is cached.
|
boolean |
isRepeated()
Checks if is repeated.
|
void |
onVideoEnd()
On video end.
|
void |
pause()
Pause.
|
static MediaPlayer |
reconstruct(GalleryItemDatabaseFormat galleryItem,
IStage stage,
java.lang.String loc)
Reconstruct.
|
void |
setBackgroundColour(com.jme3.math.ColorRGBA backgroundColour)
Sets the background colour.
|
void |
setBorderColour(com.jme3.math.ColorRGBA borderColour)
Sets the border colour.
|
void |
setCached(java.lang.String cached)
Sets the cached.
|
void |
setDeceleration(float deceleration)
Sets the deceleration.
|
void |
setLocalResource(java.io.File file,
boolean autostart,
boolean repeat,
IStage stage)
Sets the local resource.
|
void |
setLocalResource(java.lang.String localPath,
boolean autostart,
boolean repeat,
IStage stage)
Sets the local resource.
|
void |
setPosition(float pos)
Sets the position.
|
void |
setRemoteResource(java.lang.String remotePath,
boolean autostart,
boolean repeat,
IStage stage)
Sets the remote resource.
|
void |
setRepeated(boolean repeat)
Sets the repeated.
|
void |
setScaleLimits(float minScale,
float maxScale)
Sets the scale limits.
|
void |
setSize(float width,
float height)
Sets the size.
|
void |
setVisible(boolean isVisible)
Sets the visible.
|
getManipulableSpatial, initializeGeometryaddItem, addItemListener, behaviourAdded, centerItem, convertWorldVelocityToLocalVelocity, deRegisterChildrenChangedListener, getBehaviours, getBehaviours, getChildItems, getChildrenCount, getItemChildren, getItemListeners, getItemName, getMultiTouchDispatcher, getName, getParentItem, getRelativeLocation, getRelativeLocationOfWorldLocation, getRelativeRotation, getRelativeScale, getUUID, getWorldLocation, getWorldLocation, getWorldRotationDegrees, getZOrder, getZOrderManager, hasChildren, isVisible, registerChildrenChangedListener, removeAllItems, removeItem, removeItemListener, setInteractionEnabled, setItemListeners, setItemName, setParentItem, setRelativeLocation, setRelativeRotation, setRelativeScale, setWorldLocation, setZOrder, toStringattachChild, attachChildAt, childChange, clone, collideWith, deepClone, depthFirstTraversal, descendantMatches, descendantMatches, descendantMatches, detachAllChildren, detachChild, detachChildAt, detachChildNamed, getChild, getChild, getChildIndex, getChildren, getQuantity, getTriangleCount, getVertexCount, hasChild, read, setLodLevel, setMaterial, setModelBound, swapChildren, updateGeometricState, updateLogicalState, updateModelBound, writeaddControl, addLight, breadthFirstTraversal, center, checkCulling, clone, getControl, getControl, getCullHint, getLastFrustumIntersection, getLocalCullHint, getLocalLightList, getLocalQueueBucket, getLocalRotation, getLocalScale, getLocalShadowMode, getLocalToWorldMatrix, getLocalTransform, getLocalTranslation, getNumControls, getParent, getQueueBucket, getShadowMode, getUserData, getUserDataKeys, getWorldBound, getWorldLightList, getWorldRotation, getWorldScale, getWorldTransform, getWorldTranslation, hasAncestor, localToWorld, lookAt, matches, move, move, removeControl, removeControl, removeFromParent, removeLight, rotate, rotate, rotateUpTo, runControlRender, scale, scale, setCullHint, setLastFrustumIntersection, setLocalRotation, setLocalRotation, setLocalScale, setLocalScale, setLocalScale, setLocalTransform, setLocalTranslation, setLocalTranslation, setName, setQueueBucket, setShadowMode, setUserData, worldToLocalequals, getClass, hashCode, notify, notifyAll, wait, wait, waitaddItemListener, behaviourAdded, centerItem, convertWorldVelocityToLocalVelocity, getBehaviours, getBehaviours, getItemListeners, getManipulableSpatial, getMultiTouchDispatcher, getName, getParentItem, getRelativeLocation, getRelativeLocationOfWorldLocation, getRelativeRotation, getRelativeScale, getUUID, getWorldLocation, getWorldLocation, getWorldRotationDegrees, getZOrder, getZOrderManager, isVisible, removeItemListener, setInteractionEnabled, setItemListeners, setParentItem, setRelativeLocation, setRelativeRotation, setRelativeScale, setWorldLocation, setZOrderaddItem, deRegisterChildrenChangedListener, getChildItems, getChildrenCount, hasChildren, registerChildrenChangedListener, removeAllItems, removeIteminitializeGeometrypublic static final java.lang.String CACHABLE_TYPE
public MediaPlayer(java.lang.String name,
java.util.UUID uuid)
name - the nameuuid - the uuidpublic static MediaPlayer reconstruct(GalleryItemDatabaseFormat galleryItem, IStage stage, java.lang.String loc)
galleryItem - the gallery itemstage - the stageloc - the locpublic GalleryItemDatabaseFormat deconstruct(java.lang.String loc)
IItemCachabledeconstruct in interface IItemCachableloc - the student idpublic void destroy()
IMediaPlayerdestroy in interface IMediaPlayerpublic java.lang.String isCached()
public boolean isRepeated()
IMediaPlayerisRepeated in interface IMediaPlayerpublic void onVideoEnd()
IActionOnVideoEndListeneronVideoEnd in interface IActionOnVideoEndListenerpublic void pause()
IMediaPlayerpause in interface IMediaPlayerpublic void setBackgroundColour(com.jme3.math.ColorRGBA backgroundColour)
IMediaPlayersetBackgroundColour in interface IMediaPlayerbackgroundColour - the new background colourpublic void setBorderColour(com.jme3.math.ColorRGBA borderColour)
IMediaPlayersetBorderColour in interface IMediaPlayerborderColour - the new border colourpublic void setCached(java.lang.String cached)
cached - the new cachedpublic void setDeceleration(float deceleration)
IMediaPlayersetDeceleration in interface IMediaPlayerdeceleration - the new decelerationpublic void setLocalResource(java.io.File file,
boolean autostart,
boolean repeat,
IStage stage)
IMediaPlayersetLocalResource in interface IMediaPlayerfile - the fileautostart - the autostartrepeat - the repeatstage - the stagepublic void setLocalResource(java.lang.String localPath,
boolean autostart,
boolean repeat,
IStage stage)
IMediaPlayersetLocalResource in interface IMediaPlayerlocalPath - the local pathautostart - the autostartrepeat - the repeatstage - the stagepublic void setPosition(float pos)
IMediaPlayersetPosition in interface IMediaPlayerpos - the new positionpublic void setRemoteResource(java.lang.String remotePath,
boolean autostart,
boolean repeat,
IStage stage)
IMediaPlayersetRemoteResource in interface IMediaPlayerremotePath - the remote pathautostart - the autostartrepeat - the repeatstage - the stagepublic void setRepeated(boolean repeat)
IMediaPlayersetRepeated in interface IMediaPlayerrepeat - the new repeatedpublic void setScaleLimits(float minScale,
float maxScale)
IMediaPlayersetScaleLimits in interface IMediaPlayerminScale - the min scalemaxScale - the max scalepublic void setSize(float width,
float height)
IMediaPlayersetSize in interface IMediaPlayerwidth - the widthheight - the heightpublic void setVisible(boolean isVisible)
IItemsetVisible in interface IItemsetVisible in class JMEItemisVisible - the new visible