コード例 #1
0
 public string ConvertToVideoLink(string publicLink, SharedVideoResolution videoResolution)
 {
     return(GetShardInfo(ShardType.WeblinkVideo).Result.Url +
            videoResolution.ToEnumMemberValue() + "/" + //"0p/" +
            Common.Base64Encode(publicLink.TrimStart('/')) +
            ".m3u8?double_encode=1");
 }
コード例 #2
0
        public string ConvertToVideoLink(Uri publicLink, SharedVideoResolution videoResolution)
        {
            string linkstring = publicLink.PathAndQuery;

            return(GetShardInfo(ShardType.WeblinkVideo).Result.Url +
                   videoResolution.ToEnumMemberValue() + "/" +
                   Common.Base64Encode(linkstring.TrimStart('/')) +
                   ".m3u8?double_encode=1");
        }