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

public class Video extends InternalMedia implements VisualMedia
This class represents a Video.
See Also:
  • Constructor Details

    • Video

      public Video()
    • Video

      protected Video(Video other)
  • Method Details

    • getType

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

      public org.silverpeas.core.io.media.Definition getDefinition()
      Gets the definition of the resolution.
      Specified by:
      getDefinition in interface VisualMedia
      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:
      setDefinition in interface VisualMedia
      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()
    • getCopy

      public Video getCopy()
      Description copied from class: Media
      Creates a copy of the instance.
      Specified by:
      getCopy in class Media
      Returns:
      the new instance.