コード例 #1
0
        private string GetVideoSource(string videoName, string videoType)
        {
            string libraryUrl = LibraryName.ToLower() + "/" + ChildVideoLibrary.ToLower();
            string imageUrl   = videoName.ToLower() + videoType.ToLower();

            string scr = BATFeather.Wrappers().Frontend().MediaWidgets().MediaWidgetsWrapper().GetMediaSource(libraryUrl, imageUrl, "videos", currentProviderUrlName);

            return(scr);
        }
コード例 #2
0
        private string GetVideodHref(string videoName)
        {
            string documentUrl = videoName.ToLower();
            string libraryUrl  = LibraryName.ToLower() + "/" + ChildVideoLibrary.ToLower();

            string href = BATFeather.Wrappers().Frontend().MediaWidgets().MediaWidgetsWrapper().GetDownloadButtonSource(libraryUrl, documentUrl, "videos", currentProviderUrlName);

            return(href);
        }
コード例 #3
0
        private string GetVideoSource(string videoName, string videoType)
        {
            string libraryUrl = LibraryName.ToLower() + "/" + ChildVideoLibrary.ToLower();
            string imageUrl   = videoName.ToLower() + videoType.ToLower();
            string url;

            if (this.Culture == null)
            {
                url = this.BaseUrl;
            }
            else
            {
                url = ActiveBrowser.Url.Substring(0, 20);
            }

            string scr = BATFeather.Wrappers().Frontend().MediaWidgets().MediaWidgetsWrapper().GetMediaSource(libraryUrl, imageUrl, "videos", currentProviderUrlName, this.Culture);

            return(scr);
        }
コード例 #4
0
        private string GetVideodHref(string videoName)
        {
            string documentUrl = videoName.ToLower();
            string libraryUrl  = LibraryName.ToLower() + "/" + ChildVideoLibrary.ToLower();
            string url;

            if (this.Culture == null)
            {
                url = this.BaseUrl;
            }
            else
            {
                url = ActiveBrowser.Url.Substring(0, 20);
            }

            string href = BATFeather.Wrappers().Frontend().MediaWidgets().MediaWidgetsWrapper().GetDownloadButtonSource(libraryUrl, documentUrl, "videos", currentProviderUrlName);

            return(href);
        }
コード例 #5
0
        private string GetVideoSource(bool isBaseUrlIncluded)
        {
            currentProviderUrlName = BAT.Arrange(this.TestName).ExecuteArrangement("GetCurrentProviderUrlName").Result.Values["CurrentProviderUrlName"];
            string libraryUrl = LibraryName.ToLower() + "/" + ChildVideoLibrary.ToLower();
            string imageUrl   = VideoNameWithDash.ToLower() + VideoType;
            string url;

            if (this.Culture == null)
            {
                url = this.BaseUrl;
            }
            else
            {
                url = ActiveBrowser.Url.Substring(0, 20);
            }

            string scr = BATFeather.Wrappers().Frontend().MediaWidgets().MediaWidgetsWrapper().GetMediaSource(isBaseUrlIncluded, libraryUrl, imageUrl, url, "videos", currentProviderUrlName);

            return(scr);
        }