Class VideoProfile

java.lang.Object
com.day.cq.dam.video.VideoProfile

public class VideoProfile extends Object
Describes the transcoding of a video file. Utility wrapper around a video profile page/resource.
  • Field Details

  • Constructor Details

    • VideoProfile

      public VideoProfile(Resource resource)
  • Method Details

    • get

      @Deprecated public static VideoProfile get(ResourceResolver resolver, String name)
      Deprecated.
      since release 6.4. With Video Transcoding profiles being resolved by Sling ContentAware Configuration Resolver, use get(ResourceResolver, ConfigurationResourceResolver, String) instead Resolves a video profile by name (relative to the video profile base path) or absolute path.
      Parameters:
      resolver - to resolve the provided profile-name/profile-path
      name - can be a name or an absolute path
      Returns:
      a video profile wrapper
    • get

      public static VideoProfile get(ResourceResolver resolver, ConfigurationResourceResolver configResolver, String name)
      Resolves a video profile by name from Sling Context-Aware Configuration
      Parameters:
      resolver - to resolve the provided profile-name
      configResolver - to resolve provided profile-name using Sling Context-Aware Config Resolver
      name - of the profile (under the Context-Aware config's "settings" bucket)
      Returns:
      a video profile wrapper
    • getName

      public String getName()
    • getPath

      public String getPath()
    • getResource

      public Resource getResource()
    • getContentResource

      public Resource getContentResource()
    • getProperties

      public ValueMap getProperties()
    • getContentNode

      public Node getContentNode()
    • getHtmlType

      public String getHtmlType()
    • getRendition

      public Rendition getRendition(Asset asset)
    • getOutputSize

      public Dimension getOutputSize()
    • getHtmlSource

      public String getHtmlSource(Rendition rendition)
      Get the value for the 'src' attribute for the html <source> element, based on the given rendition.
      Parameters:
      rendition - Rendition for which to get the src attribute
      Returns:
      String with correct src attribute
    • getStrobeVideoSource

      public String getStrobeVideoSource(Rendition rendition)
    • getFlvVideoSource

      public String getFlvVideoSource(Rendition rendition)
    • getCustomVideoSource

      public String getCustomVideoSource(Rendition rendition)