AudioPlayerView alternatives and similar packages
Based on the "Other" category.
Alternatively, view AudioPlayerView alternatives based on common mentions on social networks and blogs.
-
Guava: Google Core Libraries for Java
Google core libraries for Java -
ZXing Android-Integration
ZXing ("Zebra Crossing") barcode scanning library for Java, Android -
FileDownloader
Multitask、MultiThread(MultiConnection)、Breakpoint-resume、High-concurrency、Simple to use、Single/NotSingle-process -
AndroidVideoCache
Cache support for any video player with help of single line -
Gradle Retrolambda Plugin
A gradle plugin for getting java lambda support in java 6, 7 and android -
AboutLibraries
AboutLibraries automatically collects all dependencies and licenses of any gradle project (Kotlin MultiPlatform), and provides easy to integrate UI components for Android and Compose-jb environments -
Android Scripting
SL4A brings scripting languages to Android by allowing you to edit and execute scripts and interactive interpreters directly on the Android device. -
android-ocr
An experimental app for Android that performs optical character recognition (OCR) on images captured using the device camera. -
material-camera
One of the most difficult APIs on Android, made easy. -
MasteringAndroidDataBinding
A comprehensive tutorial for Android Data Binding -
Android Priority Job Queue
A Job Queue specifically written for Android to easily schedule jobs (tasks) that run in the background, improving UX and application stability. -
WeakHandler
Memory safer implementation of android.os.Handler -
Tiny Dancer
An android library for displaying fps from the choreographer and percentage of time with two or more frames dropped -
Gradle buildSrcVersions
Life is too short to google for dependencies and versions -
PermissionHelper
Android Library to help you with your runtime Permissions. -
AwesomeValidation
Android validation library which helps developer boil down the tedious work to three easy steps. -
logback-android
📄The reliable, generic, fast and flexible logging framework for Android -
WheelView-Android
Selector with wheel view, applicable to selecting money or other short length values. -
PasswordLoadingView
provide a animation when finished the password -
Android-Link-Preview
It makes a preview from an url, grabbing all the information such as title, relevant texts and images. -
JsonToJava
I was fed up with writing Java classes to mirror json models. So I wrote this Java app to automate the process. -
AndroidPermissions
Android M was added to check Permission. but Permission check processing is so dirty. -
Fragment-Switcher
An instance-state saving fragment switcher, intended for use with navigation drawers or tabs. -
sixpack-java
A Java client for the Sixpack A/B testing framework https://github.com/seatgeek/sixpack -
Easy Rating Dialog
A plug and play ;) android library for displaying a "rate this app" dialog -
validation
Fire eye - Android 输入校验库 - A validation library for android -
UserAwareVideoView
A customized video view that will automatically pause video is user is not looking at device screen!!!!! -
andle
andle is an Android tool help you sync dependencies, sdk or build tool version. -
Agile Boiler Plate
A boiler plate that can be re-used to start android apps -
Typography
**DEPRECATED**. Use the native and support library variants instead - https://developer.android.com/guide/topics/ui/look-and-feel/fonts-in-xml.html. An android library that makes it easy to add custom fonts to edittexts and textviews -
Teller
Android library that manages your app's cached data with ease. -
Rx.ContentObservable
Content bindings from RxAndroid v0.25.0. -
Android Support library
The Android Support Library package is a set of code libraries that provide backward-compatible versions of Android framework API. -
Google Play Services
Library to access Google services, such as account syncing, Google+ (sharing, single sign-on), Google Maps, Location APIs, Google Play Games, Cloud Messaging, Android Device Manager, and others.
Appwrite - The open-source backend cloud platform
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of AudioPlayerView or a related project?
README
AudioPlayerView
AudioPlayerView is an Android view that loads audio from an url and have basic playback tools.
It makes use of the Android MediaPlayer library.
[alt text](./art/AudioPlayerView-Sample.gif)
Unfortunately this gif doesn't play audio :) check the sample app to hear it.
Update from 1.0.0 to 1.0.1
Change the package repository to jitpack as explained in next section.
Include
Include the Gradle dependency from jitpack
allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
}
dependencies {
...
compile 'com.github.HugoMatilla:AudioPlayerView:v1.0.1'
}
Permissions
AudioPlayerView adds automatically the android.permission.INTERNET
permission.
Use
Add the view to your xml.
<com.hugomatilla.audioplayerview.AudioPlayerView
android:id="@+id/player"
...
/>
Use it in your Activity, Fragment or Custom View
String url = "url-to-your-mp3-file.mp3"
AudioPlayerView audioPlayerView = (AudioPlayerView) findViewById(R.id.player);
audioPlayerView.withUrl(url);
Callbacks
There are 3 callbacks:
onAudioPreparing
: while the file is being downloaded. Use it if you want to show a progress dialog.
onAudioReady
: when the file has finished to be downloaded and is about to start playing. You can use it to hide the progress dialog.
onAudioFinished
: When the audio has finished playing and is stopped.
audioPlayerView.setOnAudioPlayerViewListener(new AudioPlayerView.OnAudioPlayerViewListener() {
@Override
public void onAudioPreparing() {
spinner.setVisibility(View.VISIBLE);
}
@Override
public void onAudioReady() {
spinner.setVisibility(View.INVISIBLE);
}
@Override
public void onAudioFinished() {
}
});
UI
You can use icons or texts to show the current state of the view: loading, playing or stopped.
The AudioPlayerView extends TextView, so you can do all of the things you would do in a TextView with some considerations.
Icons
For the icons, AudioPlayerView uses icon fonts. When the audio is ready and playing it shows a stop icon, when is finished or it was never started it shows a play button and when is preparing it shows a spinner (spinning).
The spinner icon makes the whole textView spin, so if it has a background color and it is not a round shape you probably won't get what you expected (the icon to spin) but you will see the whole rectagle spinning. In the sample application you can see how to do it.
Text
If you prefer to use text, add the texts to the xml file, and app:useIcons="false"
.
<com.hugomatilla.audioplayerview.AudioPlayerView
...
app:loadingText="loading..."
app:playText="play"
app:stopText="stop"
app:useIcons="false"
/>
Custom Icons
You can use your own icon fonts.
<com.hugomatilla.audioplayerview.lib.AudioPlayerView
...
app:loadingText="@string/customLoadingIcon"
app:playText="@string/customPlayIcon"
app:stopText="@string/customStopIcon"
app:useIcons="true"
/>
You can create your own icon fonts with fontello.com
API
The only public method to manage the audio playback is toggleAudio()
It plays the audio if it is stopped or it was never started (previous load), and it stops the audio if it is playing.
Destroy
Dont forget to destroy the AudioPlayerView when you don't need it anymore. The onDestroy()
method of the activity is a good place to have it.
@Override
protected void onDestroy() {
audioPlayerView.destroy();
super.onDestroy();
}
License
The MIT License (MIT)
Copyright (c) 2016 Hugo Matilla
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*Note that all licence references and agreements mentioned in the AudioPlayerView README section above
are relevant to that project's source code only.