Rapidly changing source and the power of RX

Tuesday, May 13, 2014

Recently i needed to work with MediaElement on WP8 where the source URI for the MediaElement was something that was recieved from a 3rd party library using an event event EventHandler<VideoEventArgs> OnVideoChanged; Where VideoEventArgs is defined as follows: public class VideoEventArgs:EventArgs { Uri VideoStreamUri { get; set; } double Rotation { get; set; } //other properties Without going into too much details about the 3rd party, the URI it provides us is the source of the video that is currently broadcasting and rotation in which it was sent to us (think of a mobile device...
no comments