Exemple #1
0
        public void SaveVideo(string str)
        {
            string fullname = GetVideoFileName(str);

            if (!fullname.Equals(string.Empty))
            {
                string source = DataUtility.GetScreenVideoPath() + fullname + ".mp4";
                string file   = fullname.Substring(fullname.IndexOf('/') + 1) + ".mp4";
                GallerySaver.CopyToGallery(source, file);
                textInform.ShowInform("Video Saved", true, 1f);
            }
            else
            {
                textInform.ShowInform("Video donot Exist", true, 1f);
            }
        }
Exemple #2
0
        public void SaveScreenShot(string str)
        {
            try
            {
                int id = str.IndexOf('/');
                if (id != -1)
                {
                    string source = DataUtility.GetScreenShotPath() + str;
                    string file   = str.Substring(id + 1);
//					print("SaveScreenShot img source = " + source + "\n");
//					print("SaveScreenShot destination file = " + file + "\n");
//					print("SaveScreenShot GallerySaver destination file = " + Path.Combine(GallerySaver.GetPicturesFolderPath(), file) + "\n");
                    GallerySaver.CopyToGallery(source, file);
                }
            }
            catch (System.Exception ex)
            {
                TestCenter.Singleton.Log("error: " + ex.Message);
            }
        }