public class

StandardMediaPlayerFactory

extends Object
implements IMediaPlayerFactory
java.lang.Object
   ↳ com.h6ah4i.android.media.standard.StandardMediaPlayerFactory

Summary

Public Constructors
StandardMediaPlayerFactory(Context context)
Public Methods
IBassBoost createBassBoost(IBasicMediaPlayer player)
Create BassBoost object
IBassBoost createBassBoost(int audioSession)
Create BassBoost object
IEnvironmentalReverb createEnvironmentalReverb()
Create EnvironmentalReverb object
IEqualizer createEqualizer(int audioSession)
Create Equalizer object
IEqualizer createEqualizer(IBasicMediaPlayer player)
Create Equalizer object
IEqualizer createHQEqualizer()
Create HQEqualizer object
IHQVisualizer createHQVisualizer()
Create HQVisualizer object
ILoudnessEnhancer createLoudnessEnhancer(IBasicMediaPlayer player)
Create LoudnessEnhancer object
ILoudnessEnhancer createLoudnessEnhancer(int audioSession)
Create LoudnessEnhancer object
IBasicMediaPlayer createMediaPlayer()
Create BasicMediaPlayer object
IPreAmp createPreAmp()
Create PreAmp object
IPresetReverb createPresetReverb()
Create PresetReverb object
IVirtualizer createVirtualizer(IBasicMediaPlayer player)
Create Virtualizer object
IVirtualizer createVirtualizer(int audioSession)
Create Virtualizer object
IVisualizer createVisualizer(IBasicMediaPlayer player)
Create Visualizer object
IVisualizer createVisualizer(int audioSession)
Create Visualizer object
void release()
Release associated resources.
Protected Methods
static void checkIsStandardMediaPlayer(IBasicMediaPlayer player)
StandardBassBoost onCreateBassBoost(int audioSession)
StandardBassBoost onCreateBassBoost(StandardMediaPlayer player)
StandardEnvironmentalReverb onCreateEnvironmentalReverb()
StandardEqualizer onCreateEqualizer(StandardMediaPlayer player)
StandardEqualizer onCreateEqualizer(int audioSession)
StandardLoudnessEnhancer onCreateLoudnessEnhancer(StandardMediaPlayer player)
StandardLoudnessEnhancer onCreateLoudnessEnhancer(int audioSession)
StandardPresetReverb onCreatePresetReverb()
StandardVirtualizer onCreateVirtualizer(int audioSession)
StandardVirtualizer onCreateVirtualizer(StandardMediaPlayer player)
StandardVisualizer onCreateVisualizer(StandardMediaPlayer player)
StandardVisualizer onCreateVisualizer(int audioSession)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.h6ah4i.android.media.IMediaPlayerFactory
From interface com.h6ah4i.android.media.IReleasable

Public Constructors

public StandardMediaPlayerFactory (Context context)

Public Methods

public IBassBoost createBassBoost (IBasicMediaPlayer player)

Create BassBoost object

Parameters
player the BasicMediaPlayer instance to attached the BassBoost effect.
Returns
  • BassBoost object
Throws
IllegalArgumentException
IllegalStateException
UnsupportedOperationException

public IBassBoost createBassBoost (int audioSession)

Create BassBoost object

Parameters
audioSession system wide unique audio session identifier.
Returns
  • BassBoost object
Throws
IllegalArgumentException
IllegalStateException
UnsupportedOperationException

public IEnvironmentalReverb createEnvironmentalReverb ()

Create EnvironmentalReverb object

Returns
  • EnvironmentalReverb object
Throws
IllegalArgumentException
IllegalStateException
UnsupportedOperationException

public IEqualizer createEqualizer (int audioSession)

Create Equalizer object

Parameters
audioSession system wide unique audio session identifier.
Returns
  • Equalizer object
Throws
IllegalArgumentException
IllegalStateException
UnsupportedOperationException

public IEqualizer createEqualizer (IBasicMediaPlayer player)

Create Equalizer object

Parameters
player the BasicMediaPlayer instance to attached the Equalizer effect.
Returns
  • Equalizer object
Throws
IllegalArgumentException
IllegalStateException
UnsupportedOperationException

public IEqualizer createHQEqualizer ()

Create HQEqualizer object

Returns
  • HQEqualizer object
Throws
IllegalArgumentException
IllegalStateException
UnsupportedOperationException

public IHQVisualizer createHQVisualizer ()

Create HQVisualizer object

Returns
  • HQVisualizer object
Throws
IllegalArgumentException
IllegalStateException
UnsupportedOperationException

public ILoudnessEnhancer createLoudnessEnhancer (IBasicMediaPlayer player)

Create LoudnessEnhancer object

Parameters
player the BasicMediaPlayer instance to attached the LoudnessEnhancer effect.
Returns
  • LoudnessEnhancer object
Throws
IllegalArgumentException
IllegalStateException
UnsupportedOperationException

public ILoudnessEnhancer createLoudnessEnhancer (int audioSession)

Create LoudnessEnhancer object

Parameters
audioSession system wide unique audio session identifier.
Returns
  • LoudnessEnhancer object
Throws
IllegalArgumentException
IllegalStateException
UnsupportedOperationException

public IBasicMediaPlayer createMediaPlayer ()

Create BasicMediaPlayer object

Returns
  • BasicMediaPlayer object
Throws
IllegalArgumentException
IllegalStateException
UnsupportedOperationException

public IPreAmp createPreAmp ()

Create PreAmp object

Returns
  • PreAmp object
Throws
IllegalArgumentException
IllegalStateException
UnsupportedOperationException

public IPresetReverb createPresetReverb ()

Create PresetReverb object

Returns
  • PresetReverb object
Throws
IllegalArgumentException
IllegalStateException
UnsupportedOperationException

public IVirtualizer createVirtualizer (IBasicMediaPlayer player)

Create Virtualizer object

Parameters
player the BasicMediaPlayer instance to attached the Virtualizer effect.
Returns
  • Virtualizer object
Throws
IllegalArgumentException
IllegalStateException
UnsupportedOperationException

public IVirtualizer createVirtualizer (int audioSession)

Create Virtualizer object

Parameters
audioSession system wide unique audio session identifier.
Returns
  • Virtualizer object
Throws
IllegalArgumentException
IllegalStateException
UnsupportedOperationException

public IVisualizer createVisualizer (IBasicMediaPlayer player)

Create Visualizer object

Parameters
player the BasicMediaPlayer instance to attached the Visualizer effect.
Returns
  • Visualizer object
Throws
IllegalArgumentException
IllegalStateException
UnsupportedOperationException

public IVisualizer createVisualizer (int audioSession)

Create Visualizer object

Parameters
audioSession system wide unique audio session identifier.
Returns
  • Visualizer object
Throws
IllegalArgumentException
IllegalStateException
UnsupportedOperationException

public void release ()

Release associated resources.

Throws
IllegalStateException
UnsupportedOperationException

Protected Methods

protected static void checkIsStandardMediaPlayer (IBasicMediaPlayer player)

protected StandardBassBoost onCreateBassBoost (int audioSession)

protected StandardBassBoost onCreateBassBoost (StandardMediaPlayer player)

protected StandardEnvironmentalReverb onCreateEnvironmentalReverb ()

protected StandardEqualizer onCreateEqualizer (StandardMediaPlayer player)

protected StandardEqualizer onCreateEqualizer (int audioSession)

protected StandardLoudnessEnhancer onCreateLoudnessEnhancer (StandardMediaPlayer player)

protected StandardLoudnessEnhancer onCreateLoudnessEnhancer (int audioSession)

protected StandardPresetReverb onCreatePresetReverb ()

protected StandardVirtualizer onCreateVirtualizer (int audioSession)

protected StandardVirtualizer onCreateVirtualizer (StandardMediaPlayer player)

protected StandardVisualizer onCreateVisualizer (StandardMediaPlayer player)

protected StandardVisualizer onCreateVisualizer (int audioSession)