|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsynergynetframework.appsystem.contentsystem.items.ContentItem
synergynetframework.appsystem.contentsystem.items.OrthoContentItem
synergynetframework.appsystem.contentsystem.items.OrthoContainer
synergynetframework.appsystem.contentsystem.items.MediaPlayer
public class MediaPlayer
The Class MediaPlayer.
| Field Summary |
|---|
| Fields inherited from class synergynetframework.appsystem.contentsystem.items.OrthoContentItem |
|---|
removable |
| Fields inherited from class synergynetframework.appsystem.contentsystem.items.ContentItem |
|---|
name |
| Constructor Summary | |
|---|---|
MediaPlayer(ContentSystem contentSystem,
java.lang.String name)
Instantiates a new media player. |
|
| Method Summary | |
|---|---|
void |
addPlayerListener(JMEMediaPlayer.PlayListener l)
Adds the player listener. |
java.net.URL |
getMediaURL()
Gets the media url. |
float |
getPixelsPerUnit()
Gets the pixels per unit. |
OrthoContentItem |
getPlayerFrame()
Gets the player frame. |
VideoPlayer |
getVideoPlayer()
Gets the video player. |
boolean |
isPlaying()
Checks if is playing. |
void |
play()
Play. |
void |
removePlayListener(JMEMediaPlayer.PlayListener l)
Removes the play listener. |
void |
removePlayListeners()
Removes the play listeners. |
void |
setAutoFitSize(boolean isEnabled)
Sets the auto fit size. |
void |
setHeight(int height)
Sets the height. |
void |
setMediaURL(java.net.URL url)
Sets the media url. |
void |
setPixelsPerUnit(float ppu)
Sets the pixels per unit. |
void |
setPlaying(boolean b)
Sets the playing. |
void |
setWidth(int width)
Sets the width. |
void |
stop()
Stop. |
| Methods inherited from class synergynetframework.appsystem.contentsystem.items.OrthoContainer |
|---|
addSubItem, contains, detachSubItem, getAllItemsIncludeSystemItems, getNode, removeSubItem, removeSubItem, setBringToTopable, setRotateTranslateScalable, setScaleLimit, setTopItem, updateOrder |
| Methods inherited from class synergynetframework.appsystem.contentsystem.items.ContentItem |
|---|
addMultitouchListener, canManipulate, contains, generateUniqueName, getAngle, getBackGround, getBackgroundColour, getBorder, getBorderColour, getBorderSize, getContentSystem, getId, getImplementationObject, getLocalLocation, getName, getNote, getResource, getScale, hasCollision, init, initImplementationObjet, isBoundaryEnabled, isVisible, setAngle, setBackGround, setBackgroundColour, setBorder, setBorderColour, setBorderSize, setBoundaryEnabled, setContentSystem, setId, setLocalLocation, setLocalLocation, setLocalLocation, setManipulate, setNote, setResource, setScale, setScale, setVisible, setVisible, update, update |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface synergynetframework.appsystem.contentsystem.items.implementation.interfaces.IContentItemImplementation |
|---|
addMultitouchListener, contains, getImplementationObject, hasCollision, init, setAngle, setBackGround, setBorder, setBoundaryEnabled, setId, setLocalLocation, setLocation, setManipulate, setName, setScale, setScale, setVisible, setVisible, update, update |
| Constructor Detail |
|---|
public MediaPlayer(ContentSystem contentSystem,
java.lang.String name)
contentSystem - the content systemname - the name| Method Detail |
|---|
public void addPlayerListener(JMEMediaPlayer.PlayListener l)
IMediaPlayerImplementation
addPlayerListener in interface IMediaPlayerImplementationl - the lpublic java.net.URL getMediaURL()
public float getPixelsPerUnit()
public OrthoContentItem getPlayerFrame()
IMediaPlayerImplementation
getPlayerFrame in interface IMediaPlayerImplementationpublic VideoPlayer getVideoPlayer()
IMediaPlayerImplementation
getVideoPlayer in interface IMediaPlayerImplementationpublic boolean isPlaying()
public void play()
public void removePlayListener(JMEMediaPlayer.PlayListener l)
IMediaPlayerImplementation
removePlayListener in interface IMediaPlayerImplementationl - the lpublic void removePlayListeners()
IMediaPlayerImplementation
removePlayListeners in interface IMediaPlayerImplementationpublic void setAutoFitSize(boolean isEnabled)
IQuadContentItemImplementation
setAutoFitSize in interface IQuadContentItemImplementationisEnabled - the new auto fit sizepublic void setHeight(int height)
IQuadContentItemImplementation
setHeight in interface IQuadContentItemImplementationheight - the new heightpublic void setMediaURL(java.net.URL url)
IMediaPlayerImplementation
setMediaURL in interface IMediaPlayerImplementationurl - the new media urlpublic void setPixelsPerUnit(float ppu)
IMediaPlayerImplementation
setPixelsPerUnit in interface IMediaPlayerImplementationppu - the new pixels per unitpublic void setPlaying(boolean b)
IMediaPlayerImplementation
setPlaying in interface IMediaPlayerImplementationb - the new playingpublic void setWidth(int width)
IQuadContentItemImplementation
setWidth in interface IQuadContentItemImplementationwidth - the new widthpublic void stop()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||