Code Monkey home page Code Monkey logo

ionic-audio-player's Introduction

Ionic Audio Player (updated w/ Ionic v4 & Angular v8 in 2019)

This is a simple audio player created with Ionic 4+ / Angular 8+ (updated in 2019)

It features a play/pause button, skip back/forward buttons and a progress bar that displays the current position of the audio file. It also supports setting arbitrary positions using the progress bar.

The app will automatically download the speech I Have a Dream from the Internet and prep for playing. You'll have to have an actual Android or iOS device to use this app.

To peek into the code, feel free to clone the repo and navigate your way through. I think it's pretty straightforward.

To try it out, use the following commands to install the app on an actual device:

  • For Android devices: make sure you have a wired connection from your phone to your Mac/PC, then run ionic cordova run android --prod in terminal.
  • For iOS devices: make sure you have a Mac, and run ionic cordova prepare ios. Then use Xcode to open up the project and install it to your iOS devices.

Ionic Native Plugins

Support Platforms

  • Android
  • iOS

UI Preview

Android

android

iOS

android

GIF

demo

References

Thanks to the following posts and sources, I was able to come up with this solution:

Author

Created by Michael Xieyang Liu

Last updated: Aug 20, 2019

ionic-audio-player's People

Contributors

dependabot[bot] avatar lxieyang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ionic-audio-player's Issues

Buffering

Hello,

This application support play audio from external url without complete downloading them first?

Tab unresponsive

Hi there

Thanks for sharing this code. I'm using it in an ionic 3 application with tabs. If I press play on the file and navigates away from the playing tab, I cannot get back to that tab again. My console doesn't show any errors. Have you tried using this code in a tab application?

Do you have an idea how to make it work in background?

Great project! The only problem I'm encountering is the background mode to work for ios. The cordova plugin background mode is not working for some reason (xCode rejects it) , but I was wondering if there is another way to solve "THREAD WARNING: ['Media'] took '47.539062' ms. Plugin should use a background thread."? Thank you in advance!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.