Skip to content

[BUG] Android implementation of MediaElement raises unexpected Stopped state change when playing using AutoPlay #3079

@KeithBoynton

Description

@KeithBoynton

Is there an existing issue for this?

  • I have searched the existing issues

Did you read the "Reporting a bug" section on Contributing file?

Current Behavior

The Android implementation of the MediaElement raises an unexpected Stopped state change when playback starts. This is the state change you would expect raised when playback stops. The Windows, Mac and iOS implementations work correctly.

Here the flow of state changes right now for the Android implementation:
Opening
Stopped
Paused
Buffering
Playing

Expected Behavior

This is the flow that is expected:
Opening
Paused
Buffering
Playing

Steps To Reproduce

  1. Open and run the project from the reproduction repository
  2. Make sure you are target at an Android device/emulator
  3. Click the button and observe the state changes in the bottom label

Link to public reproduction project repository

https://bitbucket.org/KeithBoynton/android-mediaelement-playstate-issue

Environment

- .NET MAUI MediaElement: 8.0.0
- OS: Any Android
- .NET MAUI: 10.0.31

Anything else?

This issue is actually resolved in this PR: #2897 however that PR has yet to be merged and is still in a draft state.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions