Maui
Maui copied to clipboard
[BUG] MediaElement on iOS: `[AVAssetTrack loadValuesAsynchronouslyForKeys:completionHandler:] invoked with unrecognized keys`
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
- In Visual Studio, build + deploy
CommunityToolkit.Maui.Sampleto an iOS Simulator - In the iOS Simulator, navigate to Views -> MediaElement
- 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
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**
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