Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.
This repository was archived by the owner on May 1, 2024. It is now read-only.

[Bug] MediaElement bugs when 'IsLoop' is set to true #2002

@ZivFarin

Description

@ZivFarin

Description

When MediaElement's "IsLoop" is set to "True":

  1. [iOS] The MediaElement's "speed" (hardcoded to the xaml) is reset to 1 after the 1st iteration (which played at the wanted speed) is over.
  2. [iOS] Looping just stops after a while when several instances of MediaElement are running.
  3. [Android] Media controls are showing even though 'ShowsPlaybackControls' is set to "False".

Stack Trace

NaN

Link to Reproduction Sample

Steps to Reproduce

  1. Set both 'IsLoop=True' and a speed(<1 and >0)
  2. Play video on iOS device with iOS version >= 16
  3. Video\s would reset speed after first iteration is over

Expected Behavior

Speed will stay the same after first "loop"

Actual Behavior

Speed changes

Basic Information

On iOS: I believe this happens due to the usage of 'avPlayerViewController.Player?.Play()' instead of the renderer's Play() method (note that 'Play()' redefines the speed each time)

  • Version with issue: Latest (2.0.6)

  • Last known good version:

  • IDE:
    Visual studio community 2022 (64-bit) Version 17.8.5

  • Platform Target Frameworks: iOS Android

    • iOS: Xcode 15.1 15C65
    • Android: 13.0
    • UWP: X
  • Android Support Library Version: X

  • Nuget Packages: X

  • Affected Devices:

    • Android: galaxy-s20
    • iOS: Simulator, iphone-se(2020), iPad

Workaround

All bugs dissapeared when setting "IsLoop" to "False" and then using an event handler for 'MediaEnded' event to run MediaElement.Play();

Reproduction imagery

X

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working. Breaky break.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions