Giter Site home page Giter Site logo

arab-ware / super-android-media-player-play-audio-from-asset-or-url-or-path-with-listener Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 0.0 186 KB

with thus library you will be able to create amazing media playing apps .... Less coding .... Many features

Java 100.00%
mediaplayer media-player android audio audio-player mp3 mp3-player androidx player android-media-player

super-android-media-player-play-audio-from-asset-or-url-or-path-with-listener's Introduction

To Download Source Code

https://github.com/arab-ware/Android-Media-Player-Super-AudioPlayer-Library/releases/tag/ArabWare

#MediaPlayer---Play-Audio-Files-Easily with this library you will be able to create amazing media playing apps ....

example ===>

ArabWareMediaPlayer awmp = new ArabWareMediaPlayer(YourContextHere);

//how to add listener

awmp.setMediaPlayerListener(new ArabWareMediaPlayer.MediaPlayerListener() { @Override public void isPlaying(int current duration) { //is playing....... } @Override public void onStop() { //stoped..... }

@Override public void onStart() { //started....... } });

//how to set media player from raw folder awmp.setRawSource(R.raw.media);

//how to set media player from java.io.File source awmp.setPathSource(Your java.io.File);

how to set media player from url

awmp.setUrlSource(string);

//how to set media player from asser

awmp.setAssetSource(string);

//how to Start ... Pause ... Release

awmp.start() awmp.pause(); awmp.release();

//how to get current duration or max duration

int a = awmp.getCurrentDuration(); int b = awmp.getDuration();

//how to check if media player is Playing or no

boolean displaying = awmp.isPlaying();

//there is another methods ...??

just use this to make the class return media player

awmp.getMediaPlayer().YourMethodYoknow(......);

super-android-media-player-play-audio-from-asset-or-url-or-path-with-listener's People

Contributors

arab-ware avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

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.