EveryPlay Upside down on ios. I'm saved the video on lcaol. This is my code: code from: http://answers.unity3d.com/questions/1089052/can-i-use-everyplay-to-record-without-upload.html Code (CSharp): static string GetVideoPath () { #if UNITY_IOS var root = new DirectoryInfo(Application.persistentDataPath).Parent.FullName; var everyplayDir = root + "/tmp/Everyplay/session"; #elif UNITY_ANDROID var root = new DirectoryInfo(Application.temporaryCachePath).FullName; var everyplayDir = root + "/sessions"; #endif var files = new DirectoryInfo(everyplayDir).GetFiles("*.mp4", SearchOption.AllDirectories); var videoLocation = ""; // Should only be one video, if there is one at all foreach (var file in files) { #if UNITY_ANDROID videoLocation = "file://" + file.FullName; #else videoLocation = file.FullName; #endif break; } return videoLocation; } As shown below
This example code helped me a lot: https://stackoverflow.com/a/18894363 It asynchronously rotates the video located at videoURL and saves the result to exportPath. In your case, videoURL should be the URL to your local Everyplay video and exportPath should be the desired path of the rotated video output.
And there you go; my unified solution to correctly save the most recent Everyplay recording to your local storage on both Android and iOS: https://github.com/yasirkula/UnityEveryplaySaveToLocal