All Projects → jeromexiong → audio_manager

jeromexiong / audio_manager

Licence: MIT License
A flutter plugin for music playback, including notification handling.

Programming Languages

dart
5743 projects
ruby
36898 projects - #4 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to audio manager

Stereo
A Flutter plugin for playing music on iOS and Android.
Stars: ✭ 66 (-29.79%)
Mutual labels:  audio-player, flutter-plugin
Audioplayer
A flutter plugin to play audio files iOS / Android / MacOS / Web ( Swift/Java )
Stars: ✭ 461 (+390.43%)
Mutual labels:  audio-player, flutter-plugin
tutorials-hg1
These tutorials demonstrate the usage of the Harfang API
Stars: ✭ 12 (-87.23%)
Mutual labels:  audio-player
libwinmedia
[Archived] A cross-platform simple media playback library for C/C++.
Stars: ✭ 35 (-62.77%)
Mutual labels:  audio-player
SwimplyPlayIndicator
Animated PlayIndicator written in SwiftUI. Inspired by Apple's Music Player.
Stars: ✭ 52 (-44.68%)
Mutual labels:  audio-player
aeyrium-sensor
A Flutter sensor plugin which provide easy access to the Pitch and Roll on Android and iOS devices.
Stars: ✭ 57 (-39.36%)
Mutual labels:  flutter-plugin
badtaste
🎵 Terminal player with filesystem, google music and vk.com support
Stars: ✭ 40 (-57.45%)
Mutual labels:  audio-player
arduino-stoerbert
MP3 player for small children - firmware & PCB schematic
Stars: ✭ 31 (-67.02%)
Mutual labels:  audio-player
tangerine
A work-in-progress music player for the Nintendo 3DS and Nintendo Switch
Stars: ✭ 20 (-78.72%)
Mutual labels:  audio-player
flutter-tunein
Dynamically themed Music Player built with flutter
Stars: ✭ 108 (+14.89%)
Mutual labels:  flutter-plugin
amap search fluttify
高德地图 搜索组件 Flutter插件
Stars: ✭ 56 (-40.43%)
Mutual labels:  flutter-plugin
player
Proton Player is an HTML5-based streaming music player optimized for compatibility across many devices and browsers.
Stars: ✭ 84 (-10.64%)
Mutual labels:  audio-player
ionic-audio-player
A simple audio player created with Ionic 4+ / Angular 8+ (updated in Aug 2019)
Stars: ✭ 72 (-23.4%)
Mutual labels:  audio-player
theme mode handler
Flutter widget to change `themeMode` during runtime and persist it across restarts.
Stars: ✭ 28 (-70.21%)
Mutual labels:  flutter-plugin
oscilloscope
A Flutter package that can display an Oscilloscope type graphical display
Stars: ✭ 17 (-81.91%)
Mutual labels:  flutter-plugin
ANMP
multi-channel loopable video game music player for nerds and audiophiles
Stars: ✭ 16 (-82.98%)
Mutual labels:  audio-player
Tempo
Tempo is a full-stack web application and a music sharing platform dedicated to electronic music inspired on SoundCloud. It is built on React and Redux in the frontend and with an Express.js backend utilizing the Sequelize ORM as an interface to a PostgreSQL database.
Stars: ✭ 13 (-86.17%)
Mutual labels:  audio-player
useAudioPlayer
Custom React hook & context for controlling browser audio
Stars: ✭ 176 (+87.23%)
Mutual labels:  audio-player
pub-scaff
scaff, scaffold generator for Dart and Flutter
Stars: ✭ 27 (-71.28%)
Mutual labels:  flutter-plugin
nativeweb
Build your Own Plugin using (PlatformViews) Demo for Flutter Live 2018 Extended Event - Hyderabad
Stars: ✭ 26 (-72.34%)
Mutual labels:  flutter-plugin

audio_manager

pub package

A flutter plugin for music playback, including notification handling.

This plugin is developed for iOS based on AVPlayer, while android is based on mediaplayer

The example app running in AndroidThe example app running in AndroidThe example app running in iOSThe example app running in iOS

iOS

Add the following permissions in the info.plist file

	<key>UIBackgroundModes</key>
	<array>
		<string>audio</string>
	</array>
	<key>NSAppTransportSecurity</key>
	<dict>
		<key>NSAllowsArbitraryLoads</key>
		<true/>
	</dict>
  • ⚠️ Some methods are invalid in the simulator, please use the real machine

Android

Since Android9.0 (API 28), the application disables HTTP plaintext requests by default. To allow requests, add android:usesCleartextTraffic="true" in AndroidManifest.xml

<application
	...
	android:usesCleartextTraffic="true"
	...
>
  • ⚠️ Android minimum supported version 23 (app/build.gradle -> minSdkVersion: 23)
  • ⚠️ Android minimum supported Gradle version is 5.4.1 (gradle-wrapper.properties -> gradle-5.4.1-all.zip)

How to use?

The audio_manager plugin is developed in singleton mode. You only need to getAudioManager.instance in the method to quickly start using it.

Quick start

you can use local assets, directory file or network resources

// Initial playback. Preloaded playback information
AudioManager.instance
	.start(
		"assets/audio.mp3",
		// "network format resource"
		// "local resource (file://${file.path})"
		"title",
		desc: "desc",
		// cover: "network cover image resource"
		cover: "assets/ic_launcher.png")
	.then((err) {
	print(err);
});

// Play or pause; that is, pause if currently playing, otherwise play
AudioManager.instance.playOrPause()

// events callback
AudioManager.instance.onEvents((events, args) {
	print("$events, $args");
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].