Пример #1
0
        private async Task StartSource(string url)
        {
            if (url == MAX_URL)
            {
                _maxSource.ForceKeyFrame();
                await(_maxSource.IsPaused() ? _maxSource.ResumeVideo() : _maxSource.StartVideo());
            }
            else
            {
                _testPatternEncoder.ForceKeyFrame();
                await _testPatternEncoder.StartVideo();

                await(_testPatternSource.IsVideoSourcePaused() ? _testPatternSource.ResumeVideo() : _testPatternSource.StartVideo());
                await(_musicSource.IsAudioSourcePaused() ? _musicSource.ResumeAudio() : _musicSource.StartAudio());
            }
        }