private void UploadComplete(string video_uri)
        {
            UploadProgress("SavingInfo", .999f);

            video = new VimeoVideo("", video_uri);

#if UNITY_2018_1_OR_NEWER
            if (recorder.defaultVideoInput == VideoInputType.Camera360)
            {
                vimeoApi.SetVideoSpatialMode("equirectangular", recorder.defaultRenderMode360 == RenderMode360.Stereo ? "top-bottom" : "mono");
            }
#endif

            vimeoApi.SetVideoDescription("Recorded and uploaded with the Vimeo Unity SDK: https://github.com/vimeo/vimeo-unity-sdk");
            if (recorder.enableDownloads == false)
            {
                vimeoApi.SetVideoDownload(recorder.enableDownloads);
            }
            vimeoApi.SetVideoComments(recorder.commentMode);
            // vimeoApi.SetVideoReviewPage(recorder.enableReviewPage);
            SetVideoName(recorder.GetVideoName());

            if (recorder.privacyMode == VimeoApi.PrivacyModeDisplay.OnlyPeopleWithAPassword)
            {
                vimeoApi.SetVideoPassword(recorder.videoPassword);
            }
            SetVideoPrivacyMode(recorder.privacyMode);
        }
Example #2
0
        private void UploadComplete(string video_uri)
        {
            UploadProgress("SavingInfo", .999f);

            string[] uri_pieces = video_uri.Split("/" [0]);
            videoId = uri_pieces [2];

            if (recorder.defaultVideoInput == VideoInputType.Camera360)
            {
                vimeoApi.SetVideoSpatialMode("equirectangular", recorder.defaultRenderMode360 == RenderMode360.Stereo ? "top-bottom" : "mono");
            }

            vimeoApi.SetVideoDescription("Recorded and uploaded with the Vimeo Unity SDK: https://github.com/vimeo/vimeo-unity-sdk");
            SetVideoName(recorder.recorder.GetVideoName());

            if (recorder.privacyMode == VimeoApi.PrivacyModeDisplay.OnlyPeopleWithAPassword)
            {
                vimeoApi.SetVideoPassword(recorder.videoPassword);
            }
            SetVideoPrivacyMode(recorder.privacyMode);
        }