Package devices

Class AudioPlayer

  • All Implemented Interfaces:
    Item, MultimediaControl

    public class AudioPlayer
    extends Product
    implements MultimediaControl
    Audio player that Plays music from supported files. Players examples are audio devices that output audio to a 3.5 port and have no screen with only buttons and loadable with a usb port.
    Author:
    Brandon Heck
    • Constructor Detail

      • AudioPlayer

        public AudioPlayer​(Widget widget,
                           java.lang.String supportedAudioFormats,
                           java.lang.String supportedPlaylistFormats)
        Audio Player Initialization.
        Parameters:
        widget - Widget Information.
        supportedAudioFormats - Supported formats to play music.
        supportedPlaylistFormats - Supported playlist formats to Play.
    • Method Detail

      • getSupportedAudioFormats

        public java.lang.String getSupportedAudioFormats()
        Retrieve playable audio formats.
        Returns:
        supported Audio Formats.
      • getSupportedPlaylistFormats

        public java.lang.String getSupportedPlaylistFormats()
        Retrieve playable playlist formats.
        Returns:
        supported Playlist Formats.
      • getInfo

        public java.lang.String getInfo()
        Additional product information when called by product.
        Returns:
        Speaker Details.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class Product