Esempio n. 1
0
 public AudioPlayer()
 {
     _timer          = new Timer(100);
     _timer.Elapsed += delegate
     {
         _playbackProgressEventArgs.PlaybackPosition = _inStream.CurrentTime;
         PlaybackProgress.Invoke(this, _playbackProgressEventArgs);
     };
 }
Esempio n. 2
0
 private void OnPlaybackProgress(uBaseObject mediaInfo)
 {
     if (PlaybackProgress != null)
     {
         PlaybackProgress.Invoke(this, new PlaybackProgressEventArgs
         {
             MediaInfo = mediaInfo
         });
     }
 }
Esempio n. 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
                });
            }
        }