Exemple #1
0
 public void AndroidVideo(string strDeviceSerial, bool askCustomFilename)
 {
     FormAndroidRecord recorder = new FormAndroidRecord(strDeviceSerial);
       recorder.Callback = (string strFilename) => {
     using (FileStream fs = File.OpenRead(strFilename)) {
       UploadVideo(fs);
     }
       };
       recorder.Show();
 }
Exemple #2
0
        public void AndroidVideo(string strDeviceSerial, bool askCustomFilename)
        {
            FormAndroidRecord recorder = new FormAndroidRecord(strDeviceSerial);
              recorder.Callback = (string strFilename) => {
            StringCollection coll = new StringCollection();

            string filename = this.RandomFilename(this.settings.GetInt("Length"));
            filename = Path.GetTempPath() + filename + ".mp4";
            File.Move(strFilename, filename);

            coll.Add(filename);
            UploadFiles(coll);
              };
              recorder.Show();
        }
Exemple #3
0
        public void AndroidVideo(string strDeviceSerial, bool askCustomFilename)
        {
            FormAndroidRecord recorder = new FormAndroidRecord(strDeviceSerial);
              recorder.Callback = (string strFilename) => {
            StringCollection coll = new StringCollection();

            string filename = this.RandomFilename(this.settings.GetInt("Length"));
            if (this.useMD5) {
              filename = MD5(filename + rnd.Next(1000, 9999).ToString());

              if (this.shortMD5)
            filename = filename.Substring(0, this.length);
            }
            filename = Path.GetTempPath() + filename + ".mp4";
            File.Move(strFilename, filename);

            coll.Add(filename);
            UploadFiles(coll, askCustomFilename);
              };
              recorder.Show();
        }