Skip to content
/ loku Public
forked from comm-iteam/loku

Android audio streaming library using rxjava 2

Notifications You must be signed in to change notification settings

robelor/loku

 
 

Repository files navigation

Loku Audio Library for Android

Loku is a simple audio stream API for Android using rxjava 2

Download

Working on maven repository

Usage

  • Download and import it. Right now you can do it manually
  • Add permissions
<uses-permission android:name="android.permission.RECORD_AUDIO" />
  • Use it
    compositeDisposable = new CompositeDisposable();

    // create a recorder
    Recorder recorder = new Recorder(getApplicationContext());
    compositeDisposable.add(recorder);

    // create a player and subscribe it to the loku recorder
    Player player = new Player(getApplicationContext());
    compositeDisposable.add(
        recorder.getAudioFlowable()
            .observeOn(Schedulers.newThread())
            .subscribeWith(player));
  • Don't forget to unsubscribe
    if (!compositeDisposable.isDisposed()) {
      compositeDisposable.dispose();
    }

About

Android audio streaming library using rxjava 2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%