JustAudioPlayer class abstract
The web impluementation of AudioPlayerPlatform
.
- Inheritance
-
- Object
- AudioPlayerPlatform
- JustAudioPlayer
- Implementers
Constructors
- JustAudioPlayer.new({required String id})
-
Creates a platform player with the given
id
.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
finalinherited
-
playbackEventMessageStream
→ Stream<
PlaybackEventMessage> -
A broadcast stream of playback events.
no setterinherited
-
playerDataMessageStream
→ Stream<
PlayerDataMessage> -
A broadcast stream of data updates.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
visualizerFftStream
→ Stream<
VisualizerFftCaptureMessage> -
A stream of visualizer fft data.
no setterinherited
-
visualizerWaveformStream
→ Stream<
VisualizerWaveformCaptureMessage> -
A stream of visualizer waveform data.
no setterinherited
Methods
-
androidEqualizerBandSetGain(
AndroidEqualizerBandSetGainRequest request) → Future< AndroidEqualizerBandSetGainResponse> -
Sets the gain for an Android equalizer band.
inherited
-
androidEqualizerGetParameters(
AndroidEqualizerGetParametersRequest request) → Future< AndroidEqualizerGetParametersResponse> -
Gets the Android equalizer parameters.
inherited
-
androidLoudnessEnhancerSetTargetGain(
AndroidLoudnessEnhancerSetTargetGainRequest request) → Future< AndroidLoudnessEnhancerSetTargetGainResponse> -
Sets the target gain on the Android loudness enhancer.
inherited
-
audioEffectSetEnabled(
AudioEffectSetEnabledRequest request) → Future< AudioEffectSetEnabledResponse> -
Changes the enabled status of an audio effect.
inherited
-
broadcastPlaybackEvent(
) → void - Broadcasts a playback event from the platform side to the plugin side.
-
concatenatingInsertAll(
ConcatenatingInsertAllRequest request) → Future< ConcatenatingInsertAllResponse> -
Inserts audio sources into the given concatenating audio source.
inherited
-
concatenatingMove(
ConcatenatingMoveRequest request) → Future< ConcatenatingMoveResponse> -
Moves an audio source within a concatenating audio source.
inherited
-
concatenatingRemoveRange(
ConcatenatingRemoveRangeRequest request) → Future< ConcatenatingRemoveRangeResponse> -
Removes audio sources from the given concatenating audio source.
inherited
-
dispose(
DisposeRequest request) → Future< DisposeResponse> -
This method has been superseded by
JustAudioPlatform.disposePlayer
. For backward compatibility, this method will still be called as a fallback ifJustAudioPlatform.disposePlayer
is not implemented.inherited -
getBufferedPosition(
) → Duration - Returns the current buffered position of the player.
-
getCurrentPosition(
) → Duration - Returns the current position of the player.
-
getDuration(
) → Duration? -
Returns the duration of the current player item or
null
if unknown. -
load(
LoadRequest request) → Future< LoadResponse> -
Loads an audio source.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pause(
PauseRequest request) → Future< PauseResponse> -
Pauses playback.
inherited
-
play(
PlayRequest request) → Future< PlayResponse> -
Plays the current audio source at the current index and position.
inherited
-
release(
) → Future< void> -
seek(
SeekRequest request) → Future< SeekResponse> -
Seeks to the given index and position.
inherited
-
setAndroidAudioAttributes(
SetAndroidAudioAttributesRequest request) → Future< SetAndroidAudioAttributesResponse> -
On Android, sets the audio attributes, and does nothing on other
platforms.
inherited
-
setAutomaticallyWaitsToMinimizeStalling(
SetAutomaticallyWaitsToMinimizeStallingRequest request) → Future< SetAutomaticallyWaitsToMinimizeStallingResponse> -
On iOS and macOS, sets the automaticallyWaitsToMinimizeStalling option,
and does nothing on other platforms.
inherited
-
setCanUseNetworkResourcesForLiveStreamingWhilePaused(
SetCanUseNetworkResourcesForLiveStreamingWhilePausedRequest request) → Future< SetCanUseNetworkResourcesForLiveStreamingWhilePausedResponse> -
On iOS and macOS, sets the
canUseNetworkResourcesForLiveStreamingWhilePaused option, and does nothing
on other platforms.
inherited
-
setLoopMode(
SetLoopModeRequest request) → Future< SetLoopModeResponse> -
Sets the loop mode.
inherited
-
setPitch(
SetPitchRequest request) → Future< SetPitchResponse> -
Changes the pitch.
inherited
-
setPreferredPeakBitRate(
SetPreferredPeakBitRateRequest request) → Future< SetPreferredPeakBitRateResponse> -
On iOS and macOS, sets the preferredPeakBitRate option, and does nothing
on other platforms.
inherited
-
setShuffleMode(
SetShuffleModeRequest request) → Future< SetShuffleModeResponse> -
Sets the shuffle mode.
inherited
-
setShuffleOrder(
SetShuffleOrderRequest request) → Future< SetShuffleOrderResponse> -
Sets the shuffle order.
inherited
-
setSkipSilence(
SetSkipSilenceRequest request) → Future< SetSkipSilenceResponse> -
Sets skipSilence to true/false.
inherited
-
setSpeed(
SetSpeedRequest request) → Future< SetSpeedResponse> -
Changes the playback speed.
inherited
-
setVolume(
SetVolumeRequest request) → Future< SetVolumeResponse> -
Changes the volume.
inherited
-
startVisualizer(
StartVisualizerRequest request) → Future< StartVisualizerResponse> -
Starts the visualizer.
inherited
-
stopVisualizer(
StopVisualizerRequest request) → Future< StopVisualizerResponse> -
Stops the visualizer.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
transition(
ProcessingStateMessage processingState) → void -
Transitions to
processingState
and broadcasts a playback event.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited