Skip to content

MediaController::release() drops all existing requests. #99

@Digipom

Description

@Digipom

[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)

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions