Package devices
Class AudioPlayer
- java.lang.Object
-
- start.Product
-
- devices.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 Summary
Constructors Constructor Description AudioPlayer(Widget widget, java.lang.String supportedAudioFormats, java.lang.String supportedPlaylistFormats)Audio Player Initialization.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetInfo()Additional product information when called by product.java.lang.StringgetSupportedAudioFormats()Retrieve playable audio formats.java.lang.StringgetSupportedPlaylistFormats()Retrieve playable playlist formats.voidnext()Play the next media from the device.voidplay()Play media from the device.voidprevious()Play the previous media from the device.voidstop()Stop media from the device.java.lang.StringtoString()-
Methods inherited from class start.Product
getEmployee, getId, getItemType, getManufacturer, getName, getType, setEmployee, setItemType, setManufacturer, setName
-
-
-
-
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
-
play
public void play()
Description copied from interface:MultimediaControlPlay media from the device.- Specified by:
playin interfaceMultimediaControl
-
stop
public void stop()
Description copied from interface:MultimediaControlStop media from the device.- Specified by:
stopin interfaceMultimediaControl
-
previous
public void previous()
Description copied from interface:MultimediaControlPlay the previous media from the device.- Specified by:
previousin interfaceMultimediaControl
-
next
public void next()
Description copied from interface:MultimediaControlPlay the next media from the device.- Specified by:
nextin interfaceMultimediaControl
-
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.
-
-