Class Audio

    • Method Detail

      • createIfSupported

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

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

        public AudioElement getAudioElement()
        Returns the attached AudioElement.
        Returns:
        the AudioElement