/// <summary> /// Starts playing the stream. /// Invokes "VoicePlayerStarted" to other application's modules. /// </summary> public void StartVoicePlaying() { try { _player.Start(); } catch (Exception exception) { ErrorHandler(exception.Message); return; } VoicePlayerStarted?.Invoke(this, new EventArgs()); }
/// <summary> /// Handles "VoicePlayerStarted" of the IVoicePlayerService object. /// Invokes "VoicePlayerStarted" to other application's modules. /// </summary> /// <param name="sender">Instance of the VoicePlayerService class.</param> /// <param name="e">Contains event data.</param> private void VoicePlayerStartedEventHandler(object sender, EventArgs e) { VoicePlayerStarted?.Invoke(this, new EventArgs()); }