-
Notifications
You must be signed in to change notification settings - Fork 116
Open
Description
Description
When custom handling subtitles in MediaPlaybackItem in UWP on .NET 9, the argument type changes to WinRT.IInspectable in NativeAOT build.
This code in Debug build outputs ImageCue (in the case of my video file, which is correct), and when built in NativeAOT it starts outputting IInspectable.
private void CurrentSubtitle_CueEntered(TimedMetadataTrack sender, MediaCueEventArgs args)
{
RunOnUIThread(() =>
{
DebugText.Text = args.Cue.GetType().Name;
});
}
Steps To Reproduce
- Create MediaPlaybackItem object with videofile with subtitles
- Select TimedTextTrack from embedded subtitles
- Subscribe to its CueEntered event
- Output somewhere type of args.Cue in CueEntered event handler
Expected Behavior
args.Cue has the same type in NativeAOT build as in debug-build.
Version Info
.NET: 9.0.7
CsWinRT: 2.2.0
Windows SDK: 10.0.26100
Additional Context
No response
Metadata
Metadata
Assignees
Labels
No labels