SpatialMediaPlayer


class SpatialMediaPlayer


Summary

Public companion functions

Unit
setPointSourceParams(
    session: Session,
    mediaPlayer: MediaPlayer,
    params: PointSourceParams
)

Sets a PointSourceParams on a MediaPlayer instance.

Unit
setSoundFieldAttributes(
    session: Session,
    mediaPlayer: MediaPlayer,
    attributes: SoundFieldAttributes
)

Sets a SoundFieldAttributes on a MediaPlayer instance.

Public constructors

Public companion functions

setPointSourceParams

Added in 1.0.0-alpha04
fun setPointSourceParams(
    session: Session,
    mediaPlayer: MediaPlayer,
    params: PointSourceParams
): Unit

Sets a PointSourceParams on a MediaPlayer instance.

Must be called before prepare(), not compatible with instances created by MediaPlayer#create(). Only the params or attributes from the most recent call to setPointSourceParams or setSoundFieldAttributes will apply.

Parameters
session: Session

The current SceneCore Session instance.

mediaPlayer: MediaPlayer

The MediaPlayer instance on which to set the params

params: PointSourceParams

The source params to be set.

setSoundFieldAttributes

Added in 1.0.0-alpha04
fun setSoundFieldAttributes(
    session: Session,
    mediaPlayer: MediaPlayer,
    attributes: SoundFieldAttributes
): Unit

Sets a SoundFieldAttributes on a MediaPlayer instance.

Must be called before prepare(), not compatible with instances created by MediaPlayer#create(). Only the attributes or params from the most recent call to setSoundFieldAttributes or setPointSourceAttributes will apply.

Parameters
session: Session

The current SceneCore Session instance.

mediaPlayer: MediaPlayer

The MediaPlayer instance on which to set the attributes

attributes: SoundFieldAttributes

The source attributes to be set.

Public constructors

SpatialMediaPlayer

Added in 1.0.0-alpha04
SpatialMediaPlayer()