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