IsRecording() public static method

public static IsRecording ( ) : bool
return bool
Beispiel #1
0
        // Game End
        private void GameEnd()
        {
            HUDController.s_Instance.SetHudEnabled(false);
            DisableTankControl();
            m_GameIsFinished = true;
            if (m_EndGameModal != null)
            {
                m_EndGameModal.Show();
            }

            if (Everyplay.IsRecording())
            {
                int tankIndex = s_Tanks.IndexOf(m_LocalPlayer);
                if (tankIndex >= 0)
                {
                    Everyplay.SetMetadata("final_position", tankIndex + 1);
                }
                Everyplay.StopRecording();
            }



            LazyLoadLoadingPanel();
            m_LoadingScreen.transform.SetAsLastSibling();
        }
 //para a gravaçao
 public void Parar()
 {
     if (Everyplay.IsRecording())
     {
         Everyplay.StopRecording();
     }
 }
        private void RpcGameEnd()
        {
            HUDController.s_Instance.SetHudEnabled(false);
            DisableTankControl();
            m_GameIsFinished = true;
            if (m_EndGameModal != null)
            {
                m_EndGameModal.Show();
            }

            if (Everyplay.IsRecording())
            {
                int tankIndex = s_Tanks.IndexOf(m_LocalPlayer);
                if (tankIndex >= 0)
                {
                    Everyplay.SetMetadata("final_position", tankIndex + 1);
                }
                Everyplay.StopRecording();
            }

            // Tell menu UI that we'll be returning to the lobby scene
            MainMenuUI.s_ReturnPage = MenuPage.Lobby;

            LazyLoadLoadingPanel();
            m_LoadingScreen.transform.SetAsLastSibling();
        }
Beispiel #4
0
 public bool isRecording()
 {
     #if BROADCAST_USE_EVERYPLAY
     return(Everyplay.IsRecording());
     #else
     return(false);
     #endif
 }
Beispiel #5
0
 /// <summary>
 /// Stops the recording of gameplay videos, if running or paused.
 /// </summary>
 public static void StopRecord()
 {
                 #if UNITY_EVERYPLAY
     if (Everyplay.IsRecording() || Everyplay.IsPaused())
     {
         Everyplay.StopRecording();
     }
                 #endif
 }
Beispiel #6
0
 /// <summary>
 /// Pauses the recording of gameplay videos, if running.
 /// </summary>
 public static void PauseRecord()
 {
                 #if UNITY_EVERYPLAY
     if (Everyplay.IsRecording())
     {
         Everyplay.PauseRecording();
     }
                 #endif
 }
Beispiel #7
0
 public static void StartRecording()
 {
     if (Everyplay.IsSupported())
     {
         if (!Everyplay.IsRecording())
         {
             Everyplay.StartRecording();
             Debug.Log("Start Recording");
         }
     }
 }
 void Update()
 {
     if (takeRandomShots && Everyplay.IsRecording() && !Everyplay.IsPaused())
     {
         if (Time.time > nextRandomShotTime)
         {
             Everyplay.TakeThumbnail();
             nextRandomShotTime = Time.time + Random.Range(3.0f, 15.0f);
         }
     }
 }
    public bool PauseRecord()
    {
        bool result = false;

        if (isEnable && Everyplay.IsRecording())
        {
            Everyplay.PauseRecording();
            result = true;
        }
        return(result);
    }
    public bool StopRecord()
    {
        bool result = false;

        if (isEnable && (Everyplay.IsRecording() || Everyplay.IsPaused()))
        {
            Everyplay.StopRecording();
            result = true;
        }
        return(result);
    }
Beispiel #11
0
 public void ToggleRecord()
 {
     if (!Everyplay.IsRecording())
     {
         StartRecord();
     }
     else
     {
         StopRecord();
     }
 }
Beispiel #12
0
    public void Record()
    {
        if (!Everyplay.IsReadyForRecording())
        {
            return;
        }

        //Button [0].gameObject.SetActive (false);
        Button [1].gameObject.SetActive(true);
        if (!Everyplay.IsRecording())
        {
            Everyplay.StartRecording();
            isRecording = true;
        }
    }
    //=============================================================================

    public static void PauseRecording()
    {
                #if UNITY_IPHONE || UNITY_ANDROID
        if (Everyplay.IsRecordingSupported())
        {
            if (Everyplay.IsRecording() == true)
            {
                Everyplay.PauseRecording();
            }
        }
        else
        {
            Debug.Log("Everyplay recording not supported");
        }
                #endif
    }
    //compartilhar
    public void Compartilhar()
    {
        Parar();

        if (!Everyplay.IsRecording())
        {
            //setando meta dados
            Everyplay.SetMetadata("level", Application.loadedLevel);
            Everyplay.SetMetadata("score", PlayerPrefs.GetFloat(Application.loadedLevelName));
            Everyplay.ShowSharingModal();
        }
        else
        {
            //	debugText.gameObject.SetActive(true);
            //	debugText.text = "Nao e possivel iniciar a gravacao";
            throw new UnityException("Nao e possivel compatilhar o video");
        }
    }
    //=============================================================================

    public static void StartRecording()
    {
                #if UNITY_IPHONE || UNITY_ANDROID
        if (Everyplay.IsRecordingSupported())
        {
            if (Everyplay.IsRecording() == true)
            {
                Everyplay.StopRecording();
            }

            //if( PlayerManager.EveryplayOn )
            {
                Everyplay.SetMaxRecordingMinutesLength(1);
                Everyplay.StartRecording();
            }
        }
        else
        {
            Debug.Log("Everyplay recording not supported");
        }
                #endif
    }
 //Change everyplay to suit current game settings.
 private void CheckEveryplay()
 {
     if (Everyplay.IsSupported())
     {
         if (PlayerDataManager.s_Instance.everyplayEnabled)
         {
             //If everyplay is enabled and not recording, set it going.
             if (!Everyplay.IsRecording() && Everyplay.IsReadyForRecording())
             {
                 Everyplay.StartRecording();
             }
         }
         else
         {
             //If everyplay has been disabled and it's still recording, stop it.
             if (Everyplay.IsRecording())
             {
                 Everyplay.StopRecording();
             }
         }
     }
 }
Beispiel #17
0
 public static bool IsRecording()
 {
     return(Everyplay.IsRecording());
 }