private void setupPlayer() { if (_player == null) { _player = new HikPlayer(); _player.SetStreamMode(HikPlayer.StreamMode.Realtime); _playTimeStamp = 0; _player.DecFrameEvent += _player_DecFrameEvent; } }
public void ReleasePlayer() { if (_player != null) { _player.Stop(); _player.CloseStream(); _player.Dispose(); } _player = null; _playHead = null; }