FakeMediaPlayerExtensionsWrapper


public final class FakeMediaPlayerExtensionsWrapper


Test-only implementation of MediaPlayerExtensionsWrapper

Summary

Public constructors

Public methods

void
setPointSourceParams(
    @NonNull MediaPlayer mediaPlayer,
    @NonNull PointSourceParams params
)

Sets the PointSourceParams of the MediaPlayer.

void
setSoundFieldAttributes(
    @NonNull MediaPlayer mediaPlayer,
    @NonNull SoundFieldAttributes attributes
)

Sets the SoundFieldAttributes of the MediaPlayer.

Public constructors

FakeMediaPlayerExtensionsWrapper

Added in 1.0.0-alpha04
public FakeMediaPlayerExtensionsWrapper()

Public methods

setPointSourceParams

Added in 1.0.0-alpha04
public void setPointSourceParams(
    @NonNull MediaPlayer mediaPlayer,
    @NonNull PointSourceParams params
)

Sets the PointSourceParams of the MediaPlayer.

Parameters
@NonNull MediaPlayer mediaPlayer

The MediaPlayer to set the PointSourceParams on.

@NonNull PointSourceParams params

The PointSourceParams to set.

setSoundFieldAttributes

Added in 1.0.0-alpha04
public void setSoundFieldAttributes(
    @NonNull MediaPlayer mediaPlayer,
    @NonNull SoundFieldAttributes attributes
)

Sets the SoundFieldAttributes of the MediaPlayer.

Parameters
@NonNull MediaPlayer mediaPlayer

The MediaPlayer to set the SoundFieldAttributes on.

@NonNull SoundFieldAttributes attributes

The SoundFieldAttributes to set.