|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.silverpeas.form.displayers.VideoPlayer
public class VideoPlayer
An (X)HTML video player with javascript. The video player is set up and rendered by using javascript.
Constructor Summary | |
---|---|
VideoPlayer()
Creates a new displayer of a video player with the default settings: no video to play, autoplay set at false, the width at 425 pixels and the height at 300 pixels. |
|
VideoPlayer(String videoURL,
boolean autoplay)
Creates a new displayer of a video player that will play the video at the specified URL. |
Method Summary | |
---|---|
String |
getHeight()
Gets the height of the video player (in CSS instruction, by default 425px). |
String |
getVideoURL()
Gets the URL of the video to play. |
String |
getWidth()
Gets the width of the video player (in CSS instruction, by default 425px). |
void |
init(org.apache.ecs.ConcreteElement element)
Initializes the video player by declaring the required ressources (script, stylesheets, ...). |
boolean |
isAutoplay()
Should the video player autostart? |
void |
renderIn(org.apache.ecs.ConcreteElement element)
Renders the video player into the specified (X)HTML element. |
void |
setAutoplay(boolean autoplay)
Sets the video autoplaying property |
void |
setHeight(String height)
Sets the height of the video player in CSS (for example: 425px for 425 pixels). |
void |
setVideoURL(String videoURL)
Sets the URL of the video to play. |
void |
setWidth(String width)
Sets the width of the video player in CSS (for example: 425px for 425 pixels). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VideoPlayer(String videoURL, boolean autoplay)
videoURL
- the URL of the video to play.autoplay
- the video playing should be autostarted?public VideoPlayer()
Method Detail |
---|
public boolean isAutoplay()
public void setAutoplay(boolean autoplay)
autoplay
- true to autostart the video, false otherwise.public String getVideoURL()
public void setVideoURL(String videoURL)
videoURL
- the URL of the video to play.public String getHeight()
public void setHeight(String height)
height
- the video height.public String getWidth()
public void setWidth(String width)
width
- the video width.public void init(org.apache.ecs.ConcreteElement element)
an
- XHTML element into which the resources declaration will be rendered.public void renderIn(org.apache.ecs.ConcreteElement element)
an
- (X)HTML element into which the video player will be rendered.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |