Exemple #1
0
        private void SetThumbVimeo(int intVimeoID, string urlThumb)
        {
            VideoEntity videoEntity = new VideoEntity();
            tblVideo    video       = videoEntity.GetVideoVimeo(intVimeoID);

            if (video != null)
            {
                video.txtUrlThumbVimeo = urlThumb != null ? urlThumb : video.txtUrlThumbVimeo;
                videoEntity.UpdateVideo(video);
            }
        }
Exemple #2
0
        private void SetURLsVimeo(int intVimeoID, string urlVideoMP4, string urlStream, int intVideoID, string urlThumb, string Duracao, string videoInfo)
        {
            VideoEntity videoEntity = new VideoEntity();
            tblVideo    video       = videoEntity.GetVideoVimeo(intVimeoID, intVideoID);

            if (video != null)
            {
                video.intDuracao        = Duracao;
                video.txtUrlVimeo       = urlVideoMP4 != null ? urlVideoMP4 : video.txtUrlVimeo;
                video.txtUrlStreamVimeo = urlStream != null ? urlStream : video.txtUrlStreamVimeo;
                video.txtUrlThumbVimeo  = urlThumb != null ? urlThumb : video.txtUrlThumbVimeo;
                video.txtVideoInfo      = videoInfo != null ? videoInfo : video.txtVideoInfo;
                videoEntity.UpdateVideo(video);
            }
        }