→ كل المشاريع

flutter_system_ringtones

بواسطة @imedboumalek

نشِط 10

Flutter plugin to list and preview system ringtones, alarms and notification sounds on Android and iOS

عن هذا المشروع

fluttersystemringtones A Flutter plugin to list and preview system ringtones, alarms and notification sounds on Android and iOS. Getting Started Import the package Get a list of available sounds Each Ringtone has an id, a human-readable title and a platform-specific uri (see below). Previewing sounds play throws a PlatformException (code INVALIDARGUMENT or PLAYERROR) if the sound cannot be resolved or played. Notes: Only one sound plays at a time; there is no completion callback yet, so track "what did I start" in your own state (see the example app). Android: playback uses the ringtone audio stream — if the device's ringer volume is muted the preview is silent. iOS: the plugin sets the shared AVAudioSession category to .playback so previews are audible even when the silent switch is on. This may pause or duck other audio playing in your app. Understanding the uri field Android uri is a content:// media URI (e.g. content://media/internal/audio/media/42) as provided by RingtoneManager. You can use it with: This plugin's play/stop for previews. RingtoneManager.getRingtone(context, uri) or MediaPlayer/ExoPlayer in native code. Dart audio packages that accept content URIs.

من ملف README الخاص بالمشروع على GitHub

النجوم
10
التفريعات
8
الرخصة
MIT
آخر تحديث
11/07/2026

أضف هذه الشارة إلى ملف README

أظهر أن مشروعك مُدرج على «صُنع في الجزائر».

Made in Algeria
[![Made in Algeria](https://www.madeinalgeria.dev/badge/flutter-system-ringtones.svg)](https://www.madeinalgeria.dev/projects/flutter-system-ringtones)

مشاريع ذات صلة