Package | feathers.media |
Interface | public interface IAudioPlayer extends ITimedMediaPlayer, IMediaPlayer, IFeathersEventDispatcher |
Implementors | SoundPlayer |
Product Version : | Feathers 2.2.0 |
Property | Defined By | ||
---|---|---|---|
currentTime : Number [read-only]
The current position of the playhead, in seconds. | ITimedMediaPlayer | ||
isPlaying : Boolean [read-only]
Determines if the media content is currently playing. | ITimedMediaPlayer | ||
soundTransform : SoundTransform
Controls properties of the currently playing audio, like volume and
panning. | IAudioPlayer | ||
totalTime : Number [read-only]
The maximum position of the playhead, in seconds. | ITimedMediaPlayer |
Event | Summary | Defined By | ||
---|---|---|---|---|
Dispatched when the media player's sound transform changes. | IAudioPlayer |
soundTransform | property |
soundTransform:SoundTransform
Controls properties of the currently playing audio, like volume and panning.
public function get soundTransform():SoundTransform
public function set soundTransform(value:SoundTransform):void
See also
soundTransformChange | Event |
starling.events.Event
feathers.events.MediaPlayerEventType.SOUND_TRANSFORM_CHANGE
Dispatched when the media player's sound transform changes.
The properties of the event object have the following values:
Property | Value |
---|---|
bubbles | false |
currentTarget | The Object that defines the
event listener that handles the event. For example, if you use
myButton.addEventListener() to register an event listener,
myButton is the value of the currentTarget . |
data | null |
target | The Object that dispatched the event;
it is not always the Object listening for the event. Use the
currentTarget property to always access the Object
listening for the event. |
See also