Skip to content

sh-ogawa/music_volume

Repository files navigation

music_volume

This package is a plugin to change the volume.

Only Support android.media.AudioManager.STREAM_MUSIC, so very simple package.

Using

var _currentVolume = await MusicVolume.currentVolume;
var _maxVolume = await MusicVolume.maxVolume;
var _isMute = await MusicVolume.isMute;
await  MusicVolume.changeVolume(_maxVolume, 0);

// ・・・ playing music logic

await  MusicVolume.changeVolume(_currentVolume, _isMute);

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published