cache_audio_player_plus

Creator: coderz1093

Last updated:

0 purchases

cache_audio_player_plus Image
cache_audio_player_plus Images

Languages

Categories

Add to Cart

Description:

cache audio player plus

# Cache Audio Player Plus
Cache Audio Player Plus is a Flutter plugin that extends the functionality of the audioplayers plugin. It allows you to play multiple network audio files simultaneously and provides caching capabilities for improved performance and offline playback. This plugin is particularly useful for voice chats and similar applications where audio files need to be played and cached for efficient playback without re-downloading from the network.
## Usage
To use Cache Audio Player Plus, follow these steps:

Create an instance of the CacheAudioPlayerPlus class:

final player = CacheAudioPlayerPlus();
copied to clipboard

Play audio from a URL and enable caching:

player.playerNetworkAudio(url: "https://youraudiofilelink", cache: true);
copied to clipboard

Pause the currently playing audio:

player.pause();
copied to clipboard

Stop playing the current audio:

player.stop();
copied to clipboard

Resume the paused audio:

player.resume();
copied to clipboard

Move the audio cursor to a specific position:

player.seek();
copied to clipboard

Set the volume of the player:

player.setVolume(double);
copied to clipboard

Set the balance of the player:

player.setBalance(double);
copied to clipboard

Get the current state of the player:

PlayerState state = player.state;
copied to clipboard
Possible player states include:

Stopped
Playing
Paused
Completed
Disposed


Subscribe to the stream of changes in audio duration:

player.onDurationChanged.listen((duration) {});
copied to clipboard

Subscribe to the stream of changes in audio position:

player.onPositionChanged.listen((duration) {});
copied to clipboard

Subscribe to the stream of player state changes:

player.onPositionChanged.onPlayerStateChanged((playerState) {});
copied to clipboard
Note: Ensure that you handle the appropriate events and errors when using the Cache Audio Player Plus plugin.
This readme file provides a simplified overview of the usage of Cache Audio Player Plus and its available methods. Refer to the plugin's documentation for detailed instructions and additional features.
We hope you find Cache Audio Player Plus helpful in incorporating network audio playback and caching functionality into your Flutter applications.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.