Maui icon indicating copy to clipboard operation
Maui copied to clipboard

[BUG] MediaElement on iOS: `[AVAssetTrack loadValuesAsynchronouslyForKeys:completionHandler:] invoked with unrecognized keys`

Open TheCodeTraveler opened this issue 1 year ago • 2 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

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

  • [X] I have read the "Reporting a bug" section on Contributing file: https://github.com/CommunityToolkit/Maui/blob/main/CONTRIBUTING.md#reporting-a-bug

Current Behavior

When running MediaElement on iOS, the console output reports the following error:

2024-09-21 14:39:41.118981-0700 CommunityToolkit.Maui.Sample[72993:5603957] -[AVAssetTrack loadValuesAsynchronouslyForKeys:completionHandler:] invoked with unrecognized keys (
    "currentVideoTrack.preferredTransform"
)

Expected Behavior

We should not be unintentionally inducing errors

Steps To Reproduce

  1. In Visual Studio, build + deploy CommunityToolkit.Maui.Sample to an iOS Simulator
  2. In the iOS Simulator, navigate to Views -> MediaElement
  3. In the Console Output window, confirm the following error:
[AVAssetTrack loadValuesAsynchronouslyForKeys:completionHandler:] invoked with unrecognized keys (
    "currentVideoTrack.preferredTransform"
)

Link to public reproduction project repository

https://github.com/CommunityToolkit/Maui

Environment

- .NET MAUI CommunityToolkit: v9.0.3
- OS: iOS 17.5
- .NET MAUI: 8.0.72

Anything else?

No response

TheCodeTraveler avatar Sep 21 '24 22:09 TheCodeTraveler

I have exactly the same issue with following environment:

**- CommunityToolkit.Maui.MediaElement v4.0.1

  • CommunityToolkit.Maui: v9.0.2
  • OS: iOS 18.0.1
  • .NET MAUI: 8.0.71**

andrehuhn-be avatar Oct 25 '24 17:10 andrehuhn-be

I have the same error/exception with all latest updates as of today (20 Feb 2025). It's weird that it only happens on iPhone, not on iPad.

  • .Net 9.0
  • CommunityToolkit.Maui :11.1.0
  • Maui.MediaElement: 6.0.1

xiufengpeng avatar Feb 20 '25 22:02 xiufengpeng