Interface Video
-
- All Superinterfaces:
ContentAccess
,ContentStreamAccess
,Serializable
- All Known Implementing Classes:
VideoResource
public interface Video extends ContentStreamAccess
Represents a video. Implementations can choose whether to explicitly store the byte[] or fetch it from some sort of streaming resource as needed to service theContentAccess.getBytes()
andContentStreamAccess.getStream()
methods as needed.- Since:
- 1.0.0
- Author:
- Yiannis Paschalidis
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getDuration()
Dimension
getSize()
-
Methods inherited from interface com.github.bordertech.wcomponents.ContentAccess
getBytes, getDescription, getMimeType
-
Methods inherited from interface com.github.bordertech.wcomponents.ContentStreamAccess
getStream
-
-
-
-
Method Detail
-
getSize
Dimension getSize()
- Returns:
- the natural size (in pixels) of the video, or null if no natural size is known.
-
getDuration
int getDuration()
- Returns:
- the length of the video clip, in seconds, or <= 0 if unknown (e.g. streaming).
-
-