Class Video

    • Constructor Detail

      • Video

        @Deprecated
        public Video​(java.lang.String src)
        Deprecated.
        Creates a Video widget with a given source URL.
        Parameters:
        src - a String URL.
    • Method Detail

      • createIfSupported

        public static Video createIfSupported()
        Return a new Video if supported, and null otherwise.
        Returns:
        a new Video if supported, and null otherwise
      • isSupported

        public static boolean isSupported()
        Runtime check for whether the video element is supported in this browser.
        Returns:
        whether the video element is supported
      • getPoster

        public java.lang.String getPoster()
        Returns a poster URL.
        Returns:
        a URL containing a poster image
        See Also:
        setPoster(String)
      • getVideoElement

        public VideoElement getVideoElement()
        Returns the attached VideoElement.
        Returns:
        the VideoElement
      • getVideoHeight

        public int getVideoHeight()
        Gets the intrinsic height of video within the element. To get the element height, use Element.getOffsetHeight()
        Returns:
        the height, in pixels
      • getVideoWidth

        public int getVideoWidth()
        Gets the instrinsic width of the video within the element. To get the element width, use Element.getOffsetWidth()
        Returns:
        the width, in pixels
      • setPoster

        public void setPoster​(java.lang.String url)
        Sets the poster URL.
        Parameters:
        url - the poster image URL
        See Also:
        getPoster()