Skip to main content

PlayStateAndroidMedia

Kindclass
Packageplay.helpers
Full nameplay.helpers.PlayStateAndroidMedia
Sourcesource/play/helpers/PlayStateAndroidMedia.hx
Metadata@:access(play.PlayState)

Public methods​

start​

static function start(playState:play.PlayState):Void

Only compiled when #if android.

Begin presenting the current song to Android's media system.

ParameterTypeDefault
playStateplay.PlayState—

View source

stop​

static function stop(?playState:play.PlayState):Void

Only compiled when #if android.

Tear down the session wiring (song over / state destroyed).

ParameterTypeDefault
playState (optional)play.PlayState—

View source

start​

static function start(playState:play.PlayState):Void

Only compiled when #if !(android).

ParameterTypeDefault
playStateplay.PlayState—

View source

stop​

static function stop(?playState:play.PlayState):Void

Only compiled when #if !(android).

ParameterTypeDefault
playState (optional)play.PlayState—

View source

Internals​

Private / internal members
FieldTypeStatic
stateplay.PlayStateyes
updateTimerFlxTimeryes
duckedBoolyes
volumeBeforeDuckFloatyes
Method
static function refreshPlaybackState():Void
static function getSongArtist():String
static function getSongArtworkPath():String
static function onMediaPlay():Void
static function onMediaPause():Void
static function onMediaStop():Void
static function onAudioFocusChanged(change:String):Void