music_volume 0.0.5

Flutter Android iOS

STREAM_AUDIO volume adjustment plug-in

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);

0
likes
70
pub points
36%
popularity

STREAM_AUDIO volume adjustment plug-in

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

syogo0417@gmail.com

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on music_volume