Tuesday, June 18, 2013

Streaming to a MediaElement in C# Windows 8 Apps

Today I learned that things can be too easy sometimes :) I was trying to set the source of a media element to an .mp3 stream from DR. I tried all sorts of tricks to convert a URI to a StorageFile to a stream. After some hours of this I stumbled upon the solution:

mymediaelement.Source = new Uri("Address");

KISS


No comments:

Post a Comment