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

            if (string.IsNullOrWhiteSpace(mediaUrl))
            {
                return;
            }

            if (PlaybackProgress != null)
            {
                PlaybackProgress.Invoke(this, new PlaybackProgressEventArgs
                {
                    MediaInfo = mediaInfo
                });
            }
        }