SRGSSR / pillarbox-android

The modern SRG SSR Pillarbox player targeting Android platforms
https://android.pillarbox.ch/api
MIT License
13 stars 1 forks source link

Provide correct position when session finished #680

Closed StaehliJ closed 2 months ago

StaehliJ commented 2 months ago

As a user / integrator When a PlaybackSession transition from one to another, I want to be able to retrieve the position of the player when event occurs and not the current player position.

Acceptance criteria

Proposition


fun onSessionCreated(session: Session, position:Long) = Unit

 fun onCurrentSessionChanged(
            last: Session?,
            current: Session?,
            lastPosition: Long?,
            currentPosition: Long?,
        ) = Unit

fun onSessionDestroyed(session: Session) = Unit

Tasks