diff --git a/Assets/Scenes/Main.unity b/Assets/Scenes/Main.unity index 58017da..7edafae 100644 --- a/Assets/Scenes/Main.unity +++ b/Assets/Scenes/Main.unity @@ -3592,53 +3592,53 @@ Animation: m_GameObject: {fileID: 535548070} m_Enabled: 1 serializedVersion: 3 - m_Animation: {fileID: 7400000, guid: 365e5f41595503c48915848d883fabfe, type: 2} + m_Animation: {fileID: 7400000, guid: f30af7c2c0e25834596c036ffc483e8d, type: 2} m_Animations: - - {fileID: 7400000, guid: f1f36f20657e5244e9c1e21117d9a452, type: 2} - - {fileID: 7400000, guid: 55bec2c04d14e74488ef127ee380a080, type: 2} - - {fileID: 7400000, guid: b368bfe0efa37c04bb9c661058ccedb9, type: 2} - - {fileID: 7400000, guid: 365e5f41595503c48915848d883fabfe, type: 2} - - {fileID: 7400000, guid: fa9ef8a15fe08a143bc89dc00289fc17, type: 2} - - {fileID: 7400000, guid: 939bebf16bb2dba44894c5745c5dc1f8, type: 2} - - {fileID: 7400000, guid: aecdf652be04b444f84644ba7c403960, type: 2} - - {fileID: 7400000, guid: 53ed20623f5573345a4fb057db454b05, type: 2} - - {fileID: 7400000, guid: b0bafda258c57414ebfbc4cf89719795, type: 2} - - {fileID: 7400000, guid: 67caa6e2d05387848a9448b57fffcb0f, type: 2} - - {fileID: 7400000, guid: a79227e28dd60fa4c9812a51ab9d455e, type: 2} - - {fileID: 7400000, guid: 8b1d930398178064795f5d23af67dce4, type: 2} - - {fileID: 7400000, guid: af8192a32a30ab746be40ff1dcb8bc0a, type: 2} - - {fileID: 7400000, guid: e282c734045b47241988e2b9fdf0dc7e, type: 2} - - {fileID: 7400000, guid: 698d03f46785361449a10cc0003862eb, type: 2} - - {fileID: 7400000, guid: e193836512c744c4299651990fc3ca10, type: 2} - - {fileID: 7400000, guid: c4d452a56e2f4ee4a83e5679f969a354, type: 2} - - {fileID: 7400000, guid: 220a675640cc72d4f9c8d364c9a377b4, type: 2} - - {fileID: 7400000, guid: 9a1e34a6954967f4fb3982394bf61eef, type: 2} - - {fileID: 7400000, guid: 039911b68664f7b40b97e2665893a1e5, type: 2} - - {fileID: 7400000, guid: b4a4a507b5b85404f9ca30cf2855b359, type: 2} - - {fileID: 7400000, guid: 3b67cb87e08f4e34badc00f7b49d2591, type: 2} - - {fileID: 7400000, guid: dc854de773a9e3f488c7a1b42d6a460b, type: 2} - - {fileID: 7400000, guid: 21b376087ddd4ec46a1da0c3ba1181d9, type: 2} - - {fileID: 7400000, guid: db84b318b67dbc54fa1fab6d31dfeb6e, type: 2} - - {fileID: 7400000, guid: 47e5da18eda740844ba111cfab49d0eb, type: 2} - - {fileID: 7400000, guid: ba9dc32834cf193429f27449b1d9d701, type: 2} - - {fileID: 7400000, guid: 22f7b3c892f0e5e41b120798d7953026, type: 2} - - {fileID: 7400000, guid: 9396f2d833a082446b36b0cda61ba87c, type: 2} - - {fileID: 7400000, guid: 289449396bffd4045b8657269df378f2, type: 2} - - {fileID: 7400000, guid: 99bb7e6adbe6d5f4984c51d5d5e92045, type: 2} - - {fileID: 7400000, guid: b6faf58a03a0dc24cb9777c70fda828b, type: 2} - - {fileID: 7400000, guid: b2b18bfa970783a4ab32945b1c4bc54b, type: 2} - - {fileID: 7400000, guid: a8b0488b23a43b3499d2b1d8b81f0707, type: 2} - - {fileID: 7400000, guid: ccdf6bab5e56c0447abfc0a8f745b62c, type: 2} - - {fileID: 7400000, guid: 8d2c7cdb67fea144e9660db7edd82239, type: 2} - - {fileID: 7400000, guid: 6191f3fb2e8027b48ac60aa48c11065d, type: 2} - - {fileID: 7400000, guid: dbf77a3c567182846bad50598584109d, type: 2} - - {fileID: 7400000, guid: d2f41e4d1ce31a4458ccdab2cd91faae, type: 2} - - {fileID: 7400000, guid: fc72e7fd88de0b94fb9b050fc1368547, type: 2} - - {fileID: 7400000, guid: 5b7bf0ae891107f4aaa366ba42eac9ee, type: 2} - - {fileID: 7400000, guid: d9c72b1fb167df045ae7ac711d1dee6c, type: 2} - - {fileID: 7400000, guid: d927185f3fb021844834f7086d346e3a, type: 2} - - {fileID: 7400000, guid: e62d77cfc7d0d104b84d8beb5ef72c33, type: 2} - - {fileID: 7400000, guid: 1dd400df2179f94469eb2480a313a8cf, type: 2} + - {fileID: 7400000, guid: 024715f83bda3a24e845e4380e74b282, type: 2} + - {fileID: 7400000, guid: 0b1faa650ee11974bb7b2688b8f77d9e, type: 2} + - {fileID: 7400000, guid: 192e5450bc9b51249a4695055efa808e, type: 2} + - {fileID: 7400000, guid: 1962fa434eeeb6f4289ee601a7d750e9, type: 2} + - {fileID: 7400000, guid: 1e76a7ed8eda9e3418938f9f4bade52a, type: 2} + - {fileID: 7400000, guid: 307a3165c8fa5ec4e9e1dbd14c938201, type: 2} + - {fileID: 7400000, guid: 3ae51d5645a3e844aa539b198f435fb7, type: 2} + - {fileID: 7400000, guid: 3bcf756871574ae4f8098ecde067d0c5, type: 2} + - {fileID: 7400000, guid: 3bf1eb146bbc3df488121950abe1b8cf, type: 2} + - {fileID: 7400000, guid: 43e3f3c6f22a59f4b9a9fe7c7eaa2e60, type: 2} + - {fileID: 7400000, guid: 47abf9561f7dc544fbd158a753c48030, type: 2} + - {fileID: 7400000, guid: 4f5d38ce9a4791a45a65a6d5cf651942, type: 2} + - {fileID: 7400000, guid: 6157701b991b24d46903d222e5733a65, type: 2} + - {fileID: 7400000, guid: 6738b13e2a5c77b419d466a9b07b93da, type: 2} + - {fileID: 7400000, guid: 6c071acda0226cc4682dd95a24ba34c7, type: 2} + - {fileID: 7400000, guid: 70717780c0ae91c4fa79d0230c07e877, type: 2} + - {fileID: 7400000, guid: 71670a3ee1d3fd84d881cdcbe35aac33, type: 2} + - {fileID: 7400000, guid: 75124670012910744b6b20baa43f6773, type: 2} + - {fileID: 7400000, guid: 78643954b61e2af40855b1d7edb59e68, type: 2} + - {fileID: 7400000, guid: 8105d762612034947a4e8aa08e6e743a, type: 2} + - {fileID: 7400000, guid: 83b94fb00e13b6441b62d3c50f8fc057, type: 2} + - {fileID: 7400000, guid: 8486f353c66ec3747ac807d5254ab572, type: 2} + - {fileID: 7400000, guid: 865af1e6ffb998e4391c1f5a4fa963f4, type: 2} + - {fileID: 7400000, guid: 89844a05f01e2884db62dfc23e3bb020, type: 2} + - {fileID: 7400000, guid: 8d329b13dcec31a43a5a846e2e002e08, type: 2} + - {fileID: 7400000, guid: 9c285cd93505250428536521f358b998, type: 2} + - {fileID: 7400000, guid: a70ed1e393ddc29418dd2055d0fa69ea, type: 2} + - {fileID: 7400000, guid: b3c940c8bb0a40d4197bab5861c5f147, type: 2} + - {fileID: 7400000, guid: b557ac09196b9c245b4bf0aa00511bcf, type: 2} + - {fileID: 7400000, guid: b55e4eebb1540b24f9dee194b2621df3, type: 2} + - {fileID: 7400000, guid: b8ec32612eba3c94c8b9e075a2b84cd5, type: 2} + - {fileID: 7400000, guid: bb38a59cd20338341ae0bc9c73cd88b6, type: 2} + - {fileID: 7400000, guid: c67e687da6409ef48b294fb4b0a48d5c, type: 2} + - {fileID: 7400000, guid: cce493d72e67b4c49859605a34148c59, type: 2} + - {fileID: 7400000, guid: d2fd3606f0e661044aee19011e22f191, type: 2} + - {fileID: 7400000, guid: d50be78006beb2945a10f60a10832a15, type: 2} + - {fileID: 7400000, guid: d5a9e2c65d62b07478c2a9c546209722, type: 2} + - {fileID: 7400000, guid: d9d8762439eb57e43b4fd6cc957fd2bb, type: 2} + - {fileID: 7400000, guid: e559c6348bb5e304aa4eccc562e061bb, type: 2} + - {fileID: 7400000, guid: ea652f2c75fa62844afdcd1b896aa400, type: 2} + - {fileID: 7400000, guid: ed250cdb586bb4b46b964189a7ce2788, type: 2} + - {fileID: 7400000, guid: f30af7c2c0e25834596c036ffc483e8d, type: 2} + - {fileID: 7400000, guid: f674d89e422b07a4384b425e639d0901, type: 2} + - {fileID: 7400000, guid: f7f9e787f918e0f4a975903fc0866f68, type: 2} + - {fileID: 7400000, guid: f9e186c4e38b30b458eb71901806aa4f, type: 2} m_WrapMode: 0 m_PlayAutomatically: 1 m_AnimatePhysics: 0 diff --git a/Assets/Scripts/Export Video/ExportVideo.cs b/Assets/Scripts/Export Video/ExportVideo.cs index b2e2472..7fc5a8f 100644 --- a/Assets/Scripts/Export Video/ExportVideo.cs +++ b/Assets/Scripts/Export Video/ExportVideo.cs @@ -38,7 +38,7 @@ public class ExportVideo : MonoBehaviour { public MediaShareIOS MediaShareIOS; private MediaShareIOS share = new MediaShareIOS(); - private const string SERVER_URL = "http://150.165.205.84:80/video"; + private const string SERVER_URL = "http://traducao.vlibras.gov.br/video"; @@ -91,9 +91,7 @@ public class ExportVideo : MonoBehaviour { private void export() { - if (true) - { - int fiveTimesCount; + int fiveTimesCount; /* Making the app shows the dialog for the user every five times.*/ @@ -139,12 +137,7 @@ public class ExportVideo : MonoBehaviour { startExport(); } - } - else - { - screenManager.showPermissionDialog("Para salvar e compartilhar as animações, permita que o Vlibras acesse mídia e arquivos de seu aparelho.", "Exportar Vìdeo"); - - } + } diff --git a/Assets/Scripts/Export Video/MediaShareIOS.cs b/Assets/Scripts/Export Video/MediaShareIOS.cs index f25850d..efbbed0 100644 --- a/Assets/Scripts/Export Video/MediaShareIOS.cs +++ b/Assets/Scripts/Export Video/MediaShareIOS.cs @@ -52,7 +52,9 @@ public class MediaShareIOS : MonoBehaviour { { SourceStream.Write(videoContent, 0, bytes); SourceStream.Close(); +#if UNITY_IOS ShareIOS.CallSendToGallery(Path.Combine(path,FilePath)); +#endif yield return new WaitForSeconds(1.0f); finishWriting(); @@ -73,7 +75,9 @@ public class MediaShareIOS : MonoBehaviour { } public void showAlert(string title,string message){ - ShareIOS.CallSocialShare (title, message); +#if UNITY_IOS + ShareIOS.CallSocialShare (title, message); +#endif } @@ -81,7 +85,7 @@ public class MediaShareIOS : MonoBehaviour { public IEnumerator ShareIntent(Action errorAction) { - #if UNITY_IOS +#if UNITY_IOS if(File.Exists(Path.Combine(path,FilePath))){ ShareIOS share = new ShareIOS(); PlayerLogger.Log("MediaShareIOS","ShareIntent","Trying to share video."); @@ -100,7 +104,7 @@ public class MediaShareIOS : MonoBehaviour { //GeneralSharingiOSBridge.ShareTextWithImage (Path.Combine(path, FilePath), "Vlibras video"); - #endif +#endif yield break; } -- libgit2 0.21.2