public static void Share() { if (Everyplay.IsSupported()) { Everyplay.ShowSharingModal(); } }
void Start() { if (Everyplay.IsSupported()) { Everyplay.StartRecording(); } }
public bool isSupported() { #if BROADCAST_USE_EVERYPLAY return(Everyplay.IsSupported()); #else return(false); #endif }
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"); } }
/// <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); }
public static void StartRecording() { if (Everyplay.IsSupported()) { if (!Everyplay.IsRecording()) { Everyplay.StartRecording(); Debug.Log("Start Recording"); } } }
// 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"; } }
//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); } }
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(); }
//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(); } } } }
void Start() { Everyplay.IsSupported(); }
public void OnConstruct() { SetVideoSectionVisible(Everyplay.IsSupported()); }
public bool IsSupported() { return(Everyplay.IsSupported()); }