示例#1
0
    private void DownloadYoutube(string value)
    {
        string youtubeUrl = YoutubeThumbnail.GetImageUrlFromUrl(value, (YoutubeThumbnail.YoutubeImageType)m_dropdown.value);

        SetText(string.Format("[![{0}]({2})]({1})  \n{1}", m_altText.text, value, youtubeUrl));
        StartCoroutine(StartDownloadPreview(youtubeUrl));
    }
示例#2
0
 private string GetYoutubeImageUrl()
 {
     return(YoutubeThumbnail.GetImageUrlFromUrl(m_youtube.text, (YoutubeThumbnail.YoutubeImageType)m_dropdown.value));
 }