Exemple #1
0
    public void ResumeButtonClick()
    {
        RecShare.ResumeRecording();

        this.PauseButton.interactable  = true;
        this.ResumeButton.interactable = false;
    }
Exemple #2
0
    void Start()
    {
        RecShare.Initialize();

        RecShare.SetFirstImage("title", new Vector2(320f, 67f), 2f, Color.white);
        RecShare.SetLastImage("title", new Vector2(320f, 67f), 2f, Color.white);
        RecShare.SetOverlayImage("logo", new Vector2(300f, 30f), RecShare.Alignment.BottomRight);
    }
Exemple #3
0
    public void StopButtonClick()
    {
        RecShare.StopRecording(() => {
            float endTime = RecShare.GetVideoDuration();
            this.ScreenShotRawImageGO.GetComponent <RawImage>().texture = RecShare.GetScreenShot(endTime);
            this.ScreenShotRawImageGO.SetActive(true);

            this.StopButton.interactable   = false;
            this.PauseButton.interactable  = false;
            this.ResumeButton.interactable = false;
            this.StartButton.interactable  = true;
            this.PlayButton.interactable   = true;
            this.ShareButton.interactable  = true;
        });
    }
Exemple #4
0
    public void StartButtonClick()
    {
        RecShare.StartRecording();

        this.StartButton.interactable  = false;
        this.StopButton.interactable   = true;
        this.PauseButton.interactable  = true;
        this.ResumeButton.interactable = false;
        this.PlayButton.interactable   = false;
        this.ShareButton.interactable  = false;

        this.ScreenShotRawImageGO.SetActive(false);
        var tex2d = this.ScreenShotRawImageGO.GetComponent <RawImage>().texture;

        if (tex2d != null)
        {
            Destroy(tex2d);
        }
        this.ScreenShotRawImageGO.GetComponent <RawImage>().texture = null;
    }
Exemple #5
0
 public void ShareButtonClick()
 {
     RecShare.ShowSharingModal();
 }
Exemple #6
0
 public void PlayButtonClick()
 {
     RecShare.ShowVideoPlayer();
 }