private void Initialize() { mediaPlayer = _musicStream.Initialize(); mediaPlayer.PlaybackSession.PlaybackStateChanged += MediaPlayer_PlaybackSession_PlaybackStateChanged; }