Class Video
java.lang.Object
org.silverpeas.components.gallery.model.Media
org.silverpeas.components.gallery.model.InternalMedia
org.silverpeas.components.gallery.model.Video
- All Implemented Interfaces:
Serializable,VisualMedia,org.silverpeas.core.contribution.model.Contribution,org.silverpeas.core.contribution.model.SilverpeasContent,org.silverpeas.core.contribution.model.WithPermanentLink,org.silverpeas.core.contribution.model.WithURL,org.silverpeas.core.Identifiable,org.silverpeas.core.Instance<org.silverpeas.core.contribution.model.Contribution>,org.silverpeas.core.Nameable,org.silverpeas.core.security.Securable,org.silverpeas.core.SilverpeasResource
This class represents a Video.
- See Also:
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongGets the number of bytes delivered per seconds.getCopy()Creates a copy of the instance.org.silverpeas.core.io.media.DefinitionGets the definition of the resolution.longGets the duration in milliseconds.static StringThe type of this resourcegetType()voidsetBitrate(long bitrate) Sets the number of bytes delivered per seconds.voidsetDefinition(org.silverpeas.core.io.media.Definition definition) Sets the definition of the resolution.voidsetDuration(long durationInMs) Sets the duration in milliseconds.Methods inherited from class org.silverpeas.components.gallery.model.InternalMedia
equals, getAllMetaData, getApplicationThumbnailUrl, getDownloadPeriod, getFile, getFileMimeType, getFileName, getFileSize, hashCode, isDownloadable, isDownloadAuthorized, setDownloadAuthorized, setDownloadPeriod, setFileMimeType, setFileName, setFileSizeMethods inherited from class org.silverpeas.components.gallery.model.Media
addToAlbums, canBeAccessedBy, getApplicationEmbedUrl, getApplicationOriginalUrl, getAuthor, getComponentInstanceId, getContributionType, getCreationDate, getCreator, getCreatorId, getCreatorName, getDescription, getFile, getHighestUserRole, getId, getInstanceId, getInternalMedia, getKeyWord, getLastUpdateDate, getLastUpdatedBy, getLastUpdater, getLastUpdaterName, getMediaPK, getPermalink, getPhoto, getSilverpeasContentId, getSound, getStreaming, getTitle, getURL, getVideo, getVisibilityPeriod, getWorkspaceSubFolderName, isPreviewable, isVisible, isVisible, removeFromAllAlbums, setAuthor, setComponentInstanceId, setCreationDate, setCreator, setCreatorId, setDescription, setId, setKeyWord, setLastUpdateDate, setLastUpdatedBy, setLastUpdater, setMediaPK, setSilverpeasContentId, setTitle, setToAlbums, setVisibilityPeriod, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.silverpeas.core.contribution.model.Contribution
getModel, getName, getResourcePath, isIndexableMethods inherited from interface org.silverpeas.core.Instance
getParentMethods inherited from interface org.silverpeas.core.security.Securable
canBeDeletedBy, canBeFiledInBy, canBeModifiedByMethods inherited from interface org.silverpeas.core.contribution.model.SilverpeasContent
getIdentifier
-
Constructor Details
-
Video
public Video() -
Video
-
-
Method Details
-
getType
-
getDefinition
public org.silverpeas.core.io.media.Definition getDefinition()Gets the definition of the resolution.- Specified by:
getDefinitionin interfaceVisualMedia- Returns:
- the definition of the resolution.
-
setDefinition
public void setDefinition(org.silverpeas.core.io.media.Definition definition) Sets the definition of the resolution.- Specified by:
setDefinitionin interfaceVisualMedia- Parameters:
definition- the definition of the resolution.
-
getBitrate
public long getBitrate()Gets the number of bytes delivered per seconds.- Returns:
- number of byte delivered per seconds.
-
setBitrate
public void setBitrate(long bitrate) Sets the number of bytes delivered per seconds.- Parameters:
bitrate- the number of bytes delivered per seconds.
-
getDuration
public long getDuration()Gets the duration in milliseconds.- Returns:
- the duration in milliseconds.
-
setDuration
public void setDuration(long durationInMs) Sets the duration in milliseconds.- Parameters:
durationInMs- the duration in milliseconds.
-
getResourceType
The type of this resource- Returns:
- the same value returned by getContributionType()
-
getCopy
Description copied from class:MediaCreates a copy of the instance.
-