Skip to content

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

Closed

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)

Activity

  1. tonihei commented on Jul 15, 2022

    @tonihei
    Collaborator

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

  2. locked and limited conversation to collaborators on Mar 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions