Beispiel #1
0
        public void Dispose()
        {
            if (_playThread != null && _playThread.IsAlive)
            {
                _playThread.Abort();
            }

            if (_audioPresenter != null)
            {
                _audioPresenter.Dispose();
                _audioPresenter = null;
            }

            if (_videoPresenter != null)
            {
                _videoPresenter.Dispose();
                _videoPresenter = null;
            }
        }
Beispiel #2
0
 private ContentPlayer()
 {
     _packages       = new SortedDictionary <DateTime, IPackage>();
     _audioPresenter = new AudioPresenter();
 }