Class VideoResource
- java.lang.Object
-
- com.github.bordertech.wcomponents.InternalResource
-
- com.github.bordertech.wcomponents.VideoResource
-
- All Implemented Interfaces:
ContentAccess,ContentStreamAccess,Video,Serializable
public class VideoResource extends InternalResource implements Video
Provides a bridge to static image resources which are present in the class path, but not in the web application itself.- Since:
- 1.0.0
- Author:
- Yiannis Paschalidis
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description VideoResource(String videoResource)Creates a videoResource.VideoResource(String videoResource, String description)Creates a videoResource.VideoResource(String videoResource, String description, Dimension size)Creates a videoResource.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetDuration()Retrieves the duration of the video clip.DimensiongetSize()voidsetDuration(int duration)Sets the duration of the video clip, A value of <= 0 indicates that the duration is unknown.-
Methods inherited from class com.github.bordertech.wcomponents.InternalResource
getBytes, getDescription, getMimeType, getResourceName, getStream, getTargetUrl, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.github.bordertech.wcomponents.ContentAccess
getBytes, getDescription, getMimeType
-
Methods inherited from interface com.github.bordertech.wcomponents.ContentStreamAccess
getStream
-
-
-
-
Constructor Detail
-
VideoResource
public VideoResource(String videoResource)
Creates a videoResource.- Parameters:
videoResource- the resource name.
-
VideoResource
public VideoResource(String videoResource, String description)
Creates a videoResource.- Parameters:
videoResource- the resource name.description- the description of the video.
-
-
Method Detail
-
getSize
public Dimension getSize()
-
getDuration
public int getDuration()
Retrieves the duration of the video clip. A value of <= 0 indicates that the duration is unknown.- Specified by:
getDurationin interfaceVideo- Returns:
- the duration of the video clip.
-
setDuration
public void setDuration(int duration)
Sets the duration of the video clip, A value of <= 0 indicates that the duration is unknown.- Parameters:
duration- The duration to set.
-
-