DmBard / kohii

Playback made easy.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

kohii (コーヒー、[ko̞ːçiː])

Kohii

Video playback for Android made easy.

Kohii is a high level Video playback library, built from the experience creating/maintaining toro and ExoPlayer. Kohii targets directly the Video playback on Android, giving developer powerful playback control, including

  • (1) easy way to start a Video playback with confidence (hint: only one line),
  • (2) smooth playback experience on list any Views (RecyclerView, NestedScrollView, etc).
  • (3) smooth transition from local playback to fullscreen playback and vice versa,

This library would not deprecate toro anytime soon.

Setup

Add to your module's build.gradle dependencies

implementation "im.ene.kohii:kohii:1.0.0.2906-A06"
implementation "com.google.android.exoplayer:exoplayer:2.9.6"

Start a playback

// have a videoUrl first.
// TODO other initializations
Kohii[fragment].setUp(videoUrl).bind(playerView)

About

Playback made easy.

License:Apache License 2.0


Languages

Language:Kotlin 94.1%Language:Java 5.4%Language:Prolog 0.5%