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