Class Video

java.lang.Object
org.nuxeo.ecm.platform.video.Video
Direct Known Subclasses:
TranscodedVideo

public class Video extends Object
Object wrapping a video Blob and related VideoInfo.
Since:
5.5
Author:
Thomas Roger
  • Field Details

    • videoInfo

      protected final VideoInfo videoInfo
    • blob

      protected final Blob blob
  • Constructor Details

  • Method Details

    • fromBlobAndInfo

      public static Video fromBlobAndInfo(Blob blob, VideoInfo videoInfo)
      Build a Video from a video blob and the related videoInfo.
    • getVideoInfo

      public VideoInfo getVideoInfo()
      Returns the VideoInfo for this Video.
    • getDuration

      public double getDuration()
      Returns the duration of this Video.
    • getWidth

      public long getWidth()
      Returns the width of this Video.
    • getHeight

      public long getHeight()
      Returns the height of this Video.
    • getFormat

      public String getFormat()
      Returns the format of this Video.
    • getFrameRate

      public double getFrameRate()
      Returns the frame rate of this Video.
    • getStreams

      public List<Stream> getStreams()
      Returns all the Streams of this Video.
    • getBlob

      public Blob getBlob()
      Returns the video Blob.