public AudioPlayer() { _timer = new Timer(100); _timer.Elapsed += delegate { _playbackProgressEventArgs.PlaybackPosition = _inStream.CurrentTime; PlaybackProgress.Invoke(this, _playbackProgressEventArgs); }; }
private void OnPlaybackProgress(uBaseObject mediaInfo) { if (PlaybackProgress != null) { PlaybackProgress.Invoke(this, new PlaybackProgressEventArgs { MediaInfo = mediaInfo }); } }
private void OnPlaybackProgress(uBaseObject mediaInfo) { var mediaUrl = mediaInfo.Url; if (string.IsNullOrWhiteSpace(mediaUrl)) { return; } if (PlaybackProgress != null) { PlaybackProgress.Invoke(this, new PlaybackProgressEventArgs { MediaInfo = mediaInfo }); } }