示例#1
0
 /// <summary>
 /// Called when the media player finishes playing. Stops the update timer, informs listeners and updates the isPlaying state.
 /// </summary>
 /// <param name="sender">The sender of the event.</param>
 /// <param name="eventArgs">The event parameters</param>
 private void MediaPlayerOnCompletion(object sender, EventArgs eventArgs)
 {
     StopUpdateTimer();
     AudioCompleted?.Invoke();
     IsPlayingChanged?.Invoke(IsPlaying);
 }
示例#2
0
 /// <summary>
 /// Called when the AVAudioPlayer finishes playing. Stops the update timer, informs listeners and updates the isPlaying state.
 /// </summary>
 /// <param name="sender">The sender of the event.</param>
 /// <param name="args">The event parameters</param>
 private void OnAvAudioPlayerOnFinishedPlaying(object sender, AVStatusEventArgs args)
 {
     StopUpdateTimer();
     AudioCompleted?.Invoke();
     IsPlayingChanged?.Invoke(IsPlaying);
 }