Class Streaming

  • All Implemented Interfaces:
    Serializable, org.silverpeas.core.contribution.contentcontainer.content.SilverContentInterface, org.silverpeas.core.contribution.model.Contribution, org.silverpeas.core.contribution.model.SilverpeasContent, org.silverpeas.core.contribution.model.WithPermanentLink, 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 Streaming
    extends Media
    This class represents a Streaming.
    See Also:
    Serialized Form
    • Constructor Detail

      • Streaming

        public Streaming()
      • Streaming

        protected Streaming​(Streaming other)
    • Method Detail

      • getHomepageUrl

        public String getHomepageUrl()
        Gets the provider URL that permits to access to the video play.
        Returns:
        the provider URL that permits to access to the video play.
      • setHomepageUrl

        public void setHomepageUrl​(String url)
        Sets the provider URL that permits to access to the video play.
        Parameters:
        url - the provider URL that permits to access to the video play.
      • getProvider

        public Optional<org.silverpeas.core.media.streaming.StreamingProvider> getProvider()
        Gets the streaming provider.
        Returns:
        the streaming provider.
      • setProvider

        public void setProvider​(org.silverpeas.core.media.streaming.StreamingProvider provider)
        Gets the streaming provider.
        Parameters:
        provider - the streaming provider.
      • getResourceType

        public static String getResourceType()
        The type of this resource
        Returns:
        the same value returned by getContributionType()
      • getApplicationOriginalUrl

        public String getApplicationOriginalUrl()
        Description copied from class: Media
        Gets the original URL of a media with cache handling.
        Overrides:
        getApplicationOriginalUrl in class Media
        Returns:
        the URL of the media
      • getFile

        public org.silverpeas.core.io.file.SilverpeasFile getFile​(MediaResolution mediaResolution,
                                                                  String size)
        Description copied from class: Media
        Gets the Silverpeas file.
        Specified by:
        getFile in class Media
        Parameters:
        mediaResolution - the aimed resolution.
        size - a specific size applied on the aimed resolution, ignored if not defined.
        Returns:
        a SilverpeasFile instance which could represents also an non existing file.
      • getApplicationEmbedUrl

        public String getApplicationEmbedUrl​(MediaResolution mediaResolution)
        Description copied from class: Media
        Gets the Application URL thumbnail of the media according the specified media resolution.
        Overrides:
        getApplicationEmbedUrl in class Media
        Returns:
        the URL of media thumbnail.
      • getCopy

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

        public int hashCode()
        Overrides:
        hashCode in class Media