public void Start() { if (_isWorking) { return; } _isWorking = true; _analyzeThead = ThreadEx.ThreadCall(AnalyzeThead); }
public override void Start() { if (_isworking) { return; } _isworking = true; _CaptureThread = ThreadEx.ThreadCall(CaptureThread); }
public override void Start() { if (_isworking) { return; } _isworking = true; ResetPosition(); _curPlayTime = 0; _playThread = ThreadEx.ThreadCall(PlayThread); }
public virtual void Start() { if (_isworking) { return; } _isworking = true; OnStart(); _threadTSStreamResolve = ThreadEx.ThreadCall(TSStreamResolveThread); }
public void Start() { if (_isworking) { return; } _isworking = true; ResetPosition(); _curPlayMediaTimetick = 0; _playThread = ThreadEx.ThreadCall(PlayThread); _yuvDraw.Start(); }
private void PlayThread() { _PlayBackwardThread = ThreadEx.ThreadCall(PlayBackwardThread); while (_isworking) { MediaFrame frame = null; if (_isForwardPlay) { lock (_queue) { if (_queue.Count > 0 && !_isPaused) { frame = _queue.Dequeue(); } else { frame = null; } } if (frame != null) { PlayForward(frame); } else { ThreadEx.Sleep(10); } } else { lock (_queue) { if (_queue.Count > 0 && !_isPaused) { frame = _queue.Dequeue(); } else { frame = null; } } if (frame != null) { PlayBackward(frame); } else { ThreadEx.Sleep(10); } } } }
public virtual void Stop() { if (!_isworking) { return; } _isworking = false; OnStop(); _threadTSStreamResolve = ThreadEx.ThreadCall(TSStreamResolveThread); if (_fileStream != null) { _fileStream.Close(); } }
public void Start() { if (_isworking) { return; } _isworking = true; _firstVideoFrameTime = 0; _firstAudioFrameTime = 0; _firstFrameTime = 0; _startPlayTick = 0; _queue.Clear(); _cache.Clear(); _vp.Start(); _ap.Start(); _playThread = ThreadEx.ThreadCall(PlayThread); }