Skip to content

Commit abb88ac

Browse files
authored
Update mediaplayer.md
Changed MediaPlayerErrorEventArgs.ErrorMessage to MediaPlayerErrorEventArgs.Message to sync the naming with MediaPlayerControlErrorEventArgs. Updated docs to reflect that.
1 parent 8b44837 commit abb88ac

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

accelerate/components/media-player/mediaplayer.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,9 @@ The MediaPlayer uses an event-based approach to error handling:
146146
player.ErrorOccurred += (sender, args) =>
147147
{
148148
// Handle the error appropriately here with your custom logic.
149+
// Reset with ReleaseAsync() elsewhere if you need to playback again.
149150
// ...
150-
Console.WriteLine($"Error: {args.ErrorMessage}");
151+
Console.WriteLine($"Error: {args.Message}");
151152
};
152153

153154
// Try to play media

0 commit comments

Comments
 (0)