I want to play an audio in background. So I did this iniside my main project BackgroundAudioPlayer.Instance.Track = audioTrack; BackgroundAudioPlayer.Instance.Play(); and inside audio background agent: protected override void OnUserAction(BackgroundAudioPlayer player, AudioTrack track, UserAction action, object param) { switch (action) { case UserAction.Play: player.Play(); break; case UserAction.Stop: player.Stop(); break; case UserAction.Pause: [...] read more
I am using the MediaFoundationReader to play almost every format with my program, but I also read you are able to play streams using this. How would you go about reading streams from the internet using MediaFoundationReader? When I initialize the MediaFoundationReader-object with an URL I get the following exception: [...] read more