media icon indicating copy to clipboard operation
media copied to clipboard

MediaController::release() drops all existing requests.

Open Digipom opened this issue 3 years ago • 1 comments

[REQUIRED] Use case description

I want to be able to stop playback when exiting a screen. For example: controller.stop() controller.seekTo(0) controller.release()

The problem here is that calling release() causes stop() and seekTo() to be dropped, so they never happen.

Proposed solution

release() should dispatch existing messages first, or there should be a clear way to not have the messages dropped. The current behavior is non-intuitive.

Alternatives considered

A clear and concise description of any alternative solutions you considered, if applicable.

Handler.postDelayed({ controller.release }, 100)

Digipom avatar Jun 30 '22 02:06 Digipom

Thanks for reporting! We'll have a look into this.

tonihei avatar Jul 15 '22 15:07 tonihei