Search Unity

Save Everyplace Video on the Device

Discussion in 'Unity Everyplay' started by ZYSHAQ, Sep 28, 2015.

  1. ZYSHAQ

    ZYSHAQ

    Joined:
    Jun 26, 2015
    Posts:
    76
    Hello,
    For some reason, no Prefabs with the Everyplay plug-in are provided in the unity store (as shown on everyplay youtube), so I am doing the hard way: Coding.

    I created an empty object with an AutoRecord Script. Could anyone direct me on how to save the video after Everyplay.StopRecording() command? This is what I have done so far:

    Code (CSharp):
    1. using UnityEngine;
    2. using System.Collections;
    3.  
    4. public class TryRecording : MonoBehaviour {
    5.  
    6.     // Use this for initialization
    7.     void Awake () {
    8.         StartCoroutine ("RECO");
    9.     }
    10.    
    11.     // Update is called once per frame
    12.     void Update () {
    13.     }
    14.  
    15.     IEnumerator RECO()
    16.         {
    17.             //Start Recording after 5 seconds,
    18.             for (float i=0.0f; i<=5.0f; i=i+Time.fixedDeltaTime)
    19.             {
    20.                 yield return new WaitForFixedUpdate();          
    21.             }
    22.             Everyplay.StartRecording();    //Record
    23.             yield return new WaitForFixedUpdate();          
    24.  
    25.             //Stop Recording after 5 seconds
    26.             for (float i=0.0f; i<=5.0f; i=i+Time.fixedDeltaTime)
    27.             {
    28.                 yield return new WaitForFixedUpdate();          
    29.             }
    30.             Everyplay.StopRecording();    //Stop
    31.             yield return new WaitForFixedUpdate();          
    32.     }
    33. }
    34.  
     
  2. adit93

    adit93

    Joined:
    Aug 16, 2015
    Posts:
    2
    Hey did you ever get a solution to this? I'm currently in the same position where I want to save the video to my device.