Exemplo n.º 1
0
        public VlcTimeSource(ISampleClock clock, VlcConnectionSettings connectionSettings)
        {
            _connectionSettings = connectionSettings;
            _previousStatus     = new VlcStatus {
                IsValid = false
            };

            _timeSource = new ManualTimeSource(clock, TimeSpan.FromMilliseconds(200));
            _timeSource.DurationChanged     += TimeSourceOnDurationChanged;
            _timeSource.IsPlayingChanged    += TimeSourceOnIsPlayingChanged;
            _timeSource.ProgressChanged     += TimeSourceOnProgressChanged;
            _timeSource.PlaybackRateChanged += TimeSourceOnPlaybackRateChanged;

            _clientLoop = new Thread(ClientLoop);
            _clientLoop.Start();
        }
Exemplo n.º 2
0
 public void UpdateConnectionSettings(VlcConnectionSettings connectionSettings)
 {
     _connectionSettings = connectionSettings;
 }