public class

HybridMediaPlayerFactory

extends Object
implements IMediaPlayerFactory
java.lang.Object
   ↳ com.h6ah4i.android.media.hybrid.HybridMediaPlayerFactory

Summary

Public Constructors
HybridMediaPlayerFactory(Context context)
HybridMediaPlayerFactory(Context context, OpenSLMediaPlayerContext.Parameters params)
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
OpenSLMediaPlayerContext getOpenSLMediaPlayerContext()
void release()
Release associated resources.
Protected Methods
static void checkIsOpenSLMediaPlayer(IBasicMediaPlayer player)
int getDefaultContextOptions()
OpenSLMediaPlayerContext.Parameters getDefaultContextParams()
int getMediaPlayerOptions()
StandardBassBoost onCreateBassBoost(OpenSLMediaPlayer player)
StandardBassBoost onCreateBassBoost(int audioSession)
StandardEnvironmentalReverb onCreateEnvironmentalReverb()
StandardEqualizer onCreateEqualizer(int audioSession)
StandardEqualizer onCreateEqualizer(OpenSLMediaPlayer player)
OpenSLHQEqualizer onCreateHQEqualizer()
OpenSLHQVisualizer onCreateHQVisualizer()
StandardLoudnessEnhancer onCreateLoudnessEnhancer(OpenSLMediaPlayer player)
StandardLoudnessEnhancer onCreateLoudnessEnhancer(int audioSession)
OpenSLPreAmp onCreatePreAmp()
StandardPresetReverb onCreatePresetReverb()
StandardVirtualizer onCreateVirtualizer(int audioSession)
StandardVirtualizer onCreateVirtualizer(OpenSLMediaPlayer player)
OpenSLVisualizer onCreateVisualizer(OpenSLMediaPlayer player)
OpenSLVisualizer 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 HybridMediaPlayerFactory (Context context)

public HybridMediaPlayerFactory (Context context, OpenSLMediaPlayerContext.Parameters params)

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 OpenSLMediaPlayerContext getOpenSLMediaPlayerContext ()

public void release ()

Release associated resources.

Throws
IllegalStateException
UnsupportedOperationException

Protected Methods

protected static void checkIsOpenSLMediaPlayer (IBasicMediaPlayer player)

protected int getDefaultContextOptions ()

protected OpenSLMediaPlayerContext.Parameters getDefaultContextParams ()

protected int getMediaPlayerOptions ()

protected StandardBassBoost onCreateBassBoost (OpenSLMediaPlayer player)

protected StandardBassBoost onCreateBassBoost (int audioSession)

protected StandardEnvironmentalReverb onCreateEnvironmentalReverb ()

protected StandardEqualizer onCreateEqualizer (int audioSession)

protected StandardEqualizer onCreateEqualizer (OpenSLMediaPlayer player)

protected OpenSLHQEqualizer onCreateHQEqualizer ()

protected OpenSLHQVisualizer onCreateHQVisualizer ()

protected StandardLoudnessEnhancer onCreateLoudnessEnhancer (OpenSLMediaPlayer player)

protected StandardLoudnessEnhancer onCreateLoudnessEnhancer (int audioSession)

protected OpenSLPreAmp onCreatePreAmp ()

protected StandardPresetReverb onCreatePresetReverb ()

protected StandardVirtualizer onCreateVirtualizer (int audioSession)

protected StandardVirtualizer onCreateVirtualizer (OpenSLMediaPlayer player)

protected OpenSLVisualizer onCreateVisualizer (OpenSLMediaPlayer player)

protected OpenSLVisualizer onCreateVisualizer (int audioSession)