Beispiel #1
0
 public void LoadRelatedVideoContent(string videoSourceUrl, VideoSize videoSize)
 {
     if (HasRelatedContentPanel)
     {
         if (RelatedContentController != null)
         {
             string sizeValue = videoSize.ToString().ToLower();
             RelatedContentController.Invoke("loadRelatedContent", "video", HttpUtility.UrlEncode(videoSourceUrl), sizeValue);
         }
     }
 }
Beispiel #2
0
        public static double GetResizeCoefficient(this VideoSize size)
        {
            switch (size)
            {
            case VideoSize.SIZE_FREE:
                throw new InvalidOperationException(size.ToString());

            case VideoSize.SIZE100:
                return(1.0);

            case VideoSize.SIZE200:
                return(2.0);

            case VideoSize.SIZE50:
                return(0.5);

            default:
                throw new NotSupportedException(size.ToString());
            }
        }
 public void LoadRelatedVideoContent(string videoSourceUrl, VideoSize videoSize)
 {
     if (HasRelatedContentPanel)
     {
         if (RelatedContentController != null)
         {
             string sizeValue = videoSize.ToString().ToLower();
             RelatedContentController.Invoke("loadRelatedContent", "video", HttpUtility.UrlEncode(videoSourceUrl), sizeValue);
         }
     }
 }