NET8.0 MAUI - MediaElement - Error when trying to stream Audio files stored on AWS S3

Riffy 276 Reputation points
2024-02-27T20:43:12.21+00:00

Hi I am using MediaElement to Play audio files stored on AWS S3 buckets, using streaming. Everything is correctly setup and I am populating the MediaElement Source property with the url of the Audio file stored in my S3 bucket. I get the following error: [0:] MediaManager: Error: Error codename: ERROR_CODE_IO_BAD_HTTP_STATUS, Error message: Source error. It does not indicate what is causing the error. If I copy the url to my browser, the audio file plays without any issues. The question I have is that does MediaElement support the streaming of files from any storage source on the cloud? If not, is there another media player streaming solution (nuget) that I can implement on my NET MAUI app.? The files are too big to download/play. Thanks

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,424 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,857 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Riffy 276 Reputation points
    2024-03-03T23:04:43.2+00:00

    Hi Leon

    I have managed to solve the problem, by deleting obj/bin folders and rebuilding the App.

    The streaming of audio file now works.

    Thank you for your help.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.