Ejemplo n.º 1
0
        // twitter
        private bool getTwitterVideoInfo(string url)
        {
            TwVideo vm = new TwVideo();

            vm.Label += new TwVideo.StatusDelegate(displayLog);

            if (!vm.getVideoInfo(url))
            {
                return(false);
            }
            try {
                this.creationDate      = vm.creationDate;
                this.duration          = vm.duration;
                this.urlThumb          = vm.urlThumbVideo;
                this.listVideoMetadata = vm.listVideos;
                this.listVideoQuality  = vm.listQuality;
                this.videoTitle        = vm.videoTitle;
            } catch (Exception ex) {
                return(false);
            }
            return(true);
        }
Ejemplo n.º 2
0
        // twitter
        private bool getTwitterVideoInfo(string url)
        {
            TwVideo vm = new TwVideo();
            vm.Label += new TwVideo.StatusDelegate(displayLog);

            if (!vm.getVideoInfo(url)) {
                return false;
            }
            try {
                this.creationDate = vm.creationDate;
                this.duration = vm.duration;
                this.urlThumb = vm.urlThumbVideo;
                this.listVideoMetadata = vm.listVideos;
                this.listVideoQuality = vm.listQuality;
                this.videoTitle = vm.videoTitle;
            } catch (Exception ex) {
                return false;
            }
            return true;
        }