SongPlayerCore

Static methods

staticformatSong(song:SongInfo):String

Constructor

new()

Variables

@:value(false)isMute:Bool = false

@:value(false)isPlay:Bool = false

read onlyonLoadprogress:Signal1<Float>

read onlyonMute:Signal0

read onlyonPause:Signal0

read onlyonPlay:Signal0

read onlyonPosition:Signal1<Float>

read onlyonTextUpdate:Signal1<String>

read onlyonTimeTextUpdate:Signal1<String>

read onlyonUnmute:Signal0

read onlyonVolume:Signal1<Float>

@:value(0)position:Float = 0

@:value(0.8)volume:Float = 0.8

Methods

loadSong(song:SongInfo):Void

inlinemute():Void

set_isMute(b:Bool):Bool

set_isPlay(b:Bool):Bool

set_position(v:Float):Float

set_volume(v:Float):Float

switchMute():Void

switchPlay():Void

inlineunmute():Void