[插件]_AVProVideo插件-暂停播放

toggle暂停播放


  bool isShow = false;
  public Image ims1;
  public void OnStartPause()
        {
            isShow = !isShow;
            if (isShow)
            {
                PlayingPlayer.Control.Pause();
                ims1.enabled = false;
            }
            else
            {
                ims1.enabled = true;
                PlayingPlayer.Control.Play();

            }
        }

 

你可能感兴趣的:(插件使用)