Business.MpcPlayerBusiness.PlayVideoAsync C# (CSharp) Метод

PlayVideoAsync() публичный Метод

public PlayVideoAsync ( Media video, bool enableAutoPitch ) : Task
video DataAccess.Media
enableAutoPitch bool
Результат Task
        public async Task PlayVideoAsync(Media video, bool enableAutoPitch) {
            CurrentVideo = video;
            IsAutoPitchEnabled = enableAutoPitch;
            customFileName = null;
            TimerGetPositionEnabled = false;
            position = 0;
            nowPlayingPath = null;
            lastStartTime = DateTime.Now;
            watcher.EnsureRunning();
            await apiAccess.OpenFileAsync(MediaFileName);
            // If video doesn't load after 5 seconds, send the play command again.
            timerPlayTimeout.Stop();
            timerPlayTimeout.Start();
        }

Same methods

MpcPlayerBusiness::PlayVideoAsync ( string fileName ) : Task