IsSupported() public static method

public static IsSupported ( ) : bool
return bool
コード例 #1
0
 public static void Share()
 {
     if (Everyplay.IsSupported())
     {
         Everyplay.ShowSharingModal();
     }
 }
コード例 #2
0
 void Start()
 {
     if (Everyplay.IsSupported())
     {
         Everyplay.StartRecording();
     }
 }
コード例 #3
0
 public bool isSupported()
 {
     #if BROADCAST_USE_EVERYPLAY
     return(Everyplay.IsSupported());
     #else
     return(false);
     #endif
 }
コード例 #4
0
 public static void StopRecording()
 {
     if (Everyplay.IsSupported())
     {
         Everyplay.StopRecording();
         Everyplay.SetMetadata("Level", PlayerPrefs.GetInt("Level"));
         Everyplay.SetMetadata("Total Score", PlayerPrefs.GetInt("TotalScore"));
         Debug.Log("Stop Recording");
     }
 }
コード例 #5
0
        /// <summary>
        /// Returns whether Everplay is supported on the device.
        /// </summary>
        public static bool IsSupported()
        {
            bool supported = false;

                        #if UNITY_EVERYPLAY
            supported = Everyplay.IsSupported();
                        #endif

            return(supported);
        }
コード例 #6
0
 public static void StartRecording()
 {
     if (Everyplay.IsSupported())
     {
         if (!Everyplay.IsRecording())
         {
             Everyplay.StartRecording();
             Debug.Log("Start Recording");
         }
     }
 }
コード例 #7
0
 // Use this for initialization
 void Start()
 {
     if (Everyplay.IsSupported() &
         Everyplay.IsRecordingSupported())
     {
         Parar();
         Iniciar();
     }
     else
     {
         //debugText.gameObject.SetActive(true);
         //debugText.text = "Nao e possivel iniciar a gravacao";
     }
 }
コード例 #8
0
        //Configures which UI elements are enabled
        private void Awake()
        {
            bool touchDevice = Input.touchSupported;

            for (int i = 0; i < m_TouchDevicesOnly.Length; i++)
            {
                m_TouchDevicesOnly[i].SetActive(touchDevice);
            }

            bool everyplaySupported = Everyplay.IsSupported() && Everyplay.IsRecordingSupported();

            for (int i = 0; i < m_EveryplayCompatibleDevicesOnly.Length; i++)
            {
                m_EveryplayCompatibleDevicesOnly[i].SetActive(everyplaySupported);
            }
        }
コード例 #9
0
ファイル: Recording.cs プロジェクト: weacw/skbrowser
        public void Awake()
        {
            issupported = Everyplay.IsSupported();
            isinited    = true;
            if (!issupported)
            {
                return;
            }
            Everyplay.SetDisableSingleCoreDevices(disablesinglecoredevices);
            //Everyplay.SetMaxRecordingSecondsLength(maxrecordingminuteslength);
            Everyplay.SetLowMemoryDevice(optimizeforlowmemory);

            Everyplay.RecordingStarted += Onstartrecording;
            Everyplay.RecordingStopped += Onstoprecording;

            Everyplay.Initialize();
        }
コード例 #10
0
 //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();
             }
         }
     }
 }
コード例 #11
0
ファイル: Recording.cs プロジェクト: hopefullamp/SR
 void Start()
 {
     Everyplay.IsSupported();
 }
コード例 #12
0
 public void OnConstruct()
 {
     SetVideoSectionVisible(Everyplay.IsSupported());
 }
コード例 #13
0
 public bool IsSupported()
 {
     return(Everyplay.IsSupported());
 }