SpatialMediaPlayer


class SpatialMediaPlayer


Summary

Public companion functions

Unit
setPointSourceAttributes(
    session: Session,
    mediaPlayer: MediaPlayer,
    attributes: PointSourceAttributes
)

Sets a PointSourceAttributes on a MediaPlayer instance.

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

Sets a SoundFieldAttributes on a MediaPlayer instance.

Public constructors

Public companion functions

setPointSourceAttributes

Added in 1.0.0-alpha01
fun setPointSourceAttributes(
    session: Session,
    mediaPlayer: MediaPlayer,
    attributes: PointSourceAttributes
): Unit

Sets a PointSourceAttributes on a MediaPlayer instance.

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

Parameters
session: Session

The current SceneCore Session instance.

mediaPlayer: MediaPlayer

The MediaPlayer instance on which to set the attributes

attributes: PointSourceAttributes

The source attributes to be set.

setSoundFieldAttributes

Added in 1.0.0-alpha01
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 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-alpha01
SpatialMediaPlayer()