alarmplayer 1.0.3 copy "alarmplayer: ^1.0.3" to clipboard
alarmplayer: ^1.0.3 copied to clipboard

outdated

playing alarms

alarmplayer #

alarmplayer is a very simple plugin to play sounds with their own volume, so that you can play critical alarms also when the phone is on silent mode.

Getting started #

To use this plugin :

Add dependency to your flutter project:

$ flutter pub add alarmplayer

or

dependencies:
  alarmplayer: ^newest

Add following import to your code:

import 'package:alarmplayer/alarmplayer.dart';

Usage #

Instantiate an Alarmplayer instance

//...
Alarmplayer alarmplayer = Alarmplayer();
//...

Play alarm.

alarmplayer.Alarm(
  url: "assets/alarm.mp3",  // Path of sound file. 
  volume: 0.5,              // optional, set the volume, default 1.
);

Stop alarm.

alarmplayer.stop();         // Stop alarm.

is playing?

alarmplayer.IsPlaying();    // returning a boolean if the alarm is currently playing.

Contribution #

Of course the project is open source, and you can contribute to it repository link

  • If you found a bug, open an issue.
  • If you have a feature request, open an issue.
  • If you want to contribute, submit a pull request.

Note for ios. #

currently there is no implementation for ios yet!


Made by Mrbluesky-ai.

7
likes
0
points
113
downloads

Publisher

unverified uploader

Weekly Downloads

playing alarms

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, path_provider, plugin_platform_interface

More

Packages that depend on alarmplayer