Ejemplo n.º 1
0
        private static void videosInsertRequest_ResponseReceived(Video video)
        {
            Form1 form1 = (Form1)Application.OpenForms["form1"];

            Debug.Write("Video uploaded! ID: " + video.Id);
            form1.SetTextlblStatus("Video uploaded! ID: " + video.Id);


            VideoEntry a = new VideoEntry();

            Debug.Write("\n****PRPRPRP:" + video.ProcessingDetails.ProcessingStatus);
        }
Ejemplo n.º 2
0
        private static IList<MediaEntry> readAviInfo(IEnumerable<string> avi)
        {
            IList<MediaEntry> mediaEntries = new List<MediaEntry>();
            foreach (string filePath in from object filePathObject in avi select filePathObject.ToString())
            {
                ShellFile fin = ShellFile.FromFilePath(filePath);
                string publisher = fin.Properties.System.Media.Publisher.Value;
                string title = fin.Properties.System.Title.Value;
                if (string.IsNullOrEmpty(title))
                {
                    title = Path.GetFileNameWithoutExtension(filePath);
                }

                //string genre = fin.Properties.System.
                ulong? tmp = fin.Properties.System.Media.Duration.Value;
                ulong len = convertNanoSecondsToMiliSeconds(tmp);
                VideoEntry v = new VideoEntry("N/A",title,len,publisher,filePath);
                mediaEntries.Add(v);
            }
            return mediaEntries;
        }