/// <summary> /// ESPlayer event handler. Notifies that ALL played streams have /// completed playback (EOS was sent on all of them) /// Methods /// </summary> /// <param name="sender">Object</param> /// <param name="eosArgs">ESPlayer.EosArgs</param> private void OnEos(object sender, ESPlayer.EOSEventArgs eosArgs) { logger.Info(eosArgs.ToString()); // Stop and disable all initialized data streams. DisableTransfer(); DisableInput(); stateChangedSubject.OnCompleted(); }
/// <summary> /// ESPlayer event handler. Notifies that ALL played streams have /// completed playback (EOS was sent on all of them) /// Methods /// </summary> /// <param name="sender">Object</param> /// <param name="eosArgs">ESPlayer.EosArgs</param> private void OnEos(object sender, ESPlayer.EOSEventArgs eosArgs) { logger.Info(eosArgs.ToString()); stateChangedSubject.OnCompleted(); }