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

Description
Description
When MediaElement's "IsLoop" is set to "True":
- [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.
- [iOS] Looping just stops after a while when several instances of MediaElement are running.
- [Android] Media controls are showing even though 'ShowsPlaybackControls' is set to "False".
Stack Trace
NaN
Link to Reproduction Sample
Steps to Reproduce
- Set both 'IsLoop=True' and a speed(<1 and >0)
- Play video on iOS device with iOS version >= 16
- 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