Skip to content

mustafadakhel/Echo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Echo

A WIP library that adds some useful extensions for easily adding features to ExoPlayer utilizing the Kotlin DSL

fun PlayerView.example() {
    // custom actions for a certain listener
    install(PlayerViewListenerFeature) {
        listen(DoubleTap.Bisection) { data, player ->
            // do something custom
        }
    }

    // default actions
    install(PlayerViewListenerFeature) {
        listen(
            DoubleTap.Trisection,
            DoubleTapSeekPauseAction(10000)
        )
        // or ..
        listen(
            DoubleTap.Bisection,
            DoubleTapSeekAction(10000)
        )
    }
}

About

ExoPlayer DSL Extensions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages