Class VideoResource

    • Constructor Detail

      • VideoResource

        public VideoResource​(String videoResource)
        Creates a videoResource.
        Parameters:
        videoResource - the resource name.
      • VideoResource

        public VideoResource​(String videoResource,
                             String description)
        Creates a videoResource.
        Parameters:
        videoResource - the resource name.
        description - the description of the video.
      • VideoResource

        public VideoResource​(String videoResource,
                             String description,
                             Dimension size)
        Creates a videoResource.
        Parameters:
        videoResource - the resource name.
        description - the description of the video.
        size - the video dimensions, or null if unknown.
    • Method Detail

      • getSize

        public Dimension getSize()
        Specified by:
        getSize in interface Video
        Returns:
        the video size, or null if unknown.
      • getDuration

        public int getDuration()
        Retrieves the duration of the video clip. A value of <= 0 indicates that the duration is unknown.
        Specified by:
        getDuration in interface Video
        Returns:
        the duration of the video clip.
      • setDuration

        public void setDuration​(int duration)
        Sets the duration of the video clip, A value of <= 0 indicates that the duration is unknown.
        Parameters:
        duration - The duration to set.