com.silverpeas.gallery.model
Class Video

java.lang.Object
  extended by com.silverpeas.gallery.model.Media
      extended by com.silverpeas.gallery.model.InternalMedia
          extended by com.silverpeas.gallery.model.Video
All Implemented Interfaces:
com.silverpeas.SilverpeasContent, com.stratelia.silverpeas.contentManager.SilverContentInterface, Serializable

public class Video
extends InternalMedia

This class represents a Video.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.silverpeas.gallery.model.Media
BASE_PATH
 
Constructor Summary
Video()
           
 
Method Summary
 long getBitrate()
          Gets the number of bytes delivered per seconds.
 org.silverpeas.media.Definition getDefinition()
          Gets the definition of the resolution.
 long getDuration()
          Gets the duration in milliseconds.
static String getResourceType()
          The type of this resource
 MediaType getType()
           
 void setBitrate(long bitrate)
          Sets the number of bytes delivered per seconds.
 void setDefinition(org.silverpeas.media.Definition definition)
          Sets the definition of the resolution.
 void setDuration(long durationInMs)
          Sets the duration in milliseconds.
 
Methods inherited from class com.silverpeas.gallery.model.InternalMedia
addMetaData, getApplicationThumbnailUrl, getDownloadPeriod, getFile, getFileMimeType, getFileName, getFileSize, getMetaData, getMetaDataProperties, isDownloadable, isDownloadAuthorized, setDownloadAuthorized, setDownloadPeriod, setFileMimeType, setFileName, setFileSize
 
Methods inherited from class com.silverpeas.gallery.model.Media
addToAlbums, canBeAccessedBy, equals, getApplicationEmbedUrl, getApplicationOriginalUrl, getAuthor, getComponentInstanceId, getContributionType, getCreationDate, getCreator, getCreatorId, getCreatorName, getDate, getDescription, getDescription, getGreatestUserRole, getIconUrl, getId, getInstanceId, getInternalMedia, getKeyWord, getLanguages, getLastUpdateDate, getLastUpdatedBy, getLastUpdater, getLastUpdaterName, getMediaPK, getName, getName, getPermalink, getPhoto, getSilverCreationDate, getSilverpeasContentId, getSound, getStreaming, getTitle, getURL, getVideo, getVisibilityPeriod, getWorkspaceSubFolderName, hashCode, isPreviewable, isVisible, isVisible, removeFromAllAlbums, setAuthor, setComponentInstanceId, setCreationDate, setCreator, setCreatorId, setDescription, setIconUrl, setId, setKeyWord, setLastUpdateDate, setLastUpdatedBy, setLastUpdater, setMediaPK, setSilverpeasContentId, setTitle, setToAlbums, setVisibilityPeriod, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Video

public Video()
Method Detail

getType

public MediaType getType()
Specified by:
getType in class Media

getDefinition

public org.silverpeas.media.Definition getDefinition()
Gets the definition of the resolution.

Returns:
the definition of the resolution.

setDefinition

public void setDefinition(org.silverpeas.media.Definition definition)
Sets the definition of the resolution.

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

public static String getResourceType()
The type of this resource

Returns:
the same value returned by getContributionType()


Copyright © 2016 Silverpeas. All Rights Reserved.