本文介绍了如何在asp.net中向您显示管视频图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想根据从youtube复制的网址在我的应用程序中显示您的视频管视频网址.
我该怎么做.
i want to show image of you tube video URL on my application based on url copied from youtube.
How can i do this.
推荐答案
string videoLink = "http://www.youtube.com/watch?v=OSUO0Rgfo1w&feature=related";
string imgLink = "http://img.youtube.com/vi/";
string[] temp = videoLink.Split(new char[] { '=', '&' });
imgLink = imgLink + temp[1] + "/2.jpg";
或VB
or VB
Dim videoLink As String = "http://www.youtube.com/watch?v=OSUO0Rgfo1w&feature=related"
Dim imgLink As String = "http://img.youtube.com/vi/"
Dim temp As String() = videoLink.Split(New Char() {"="c, "&"c})
imgLink = imgLink & temp(1) & "/2.jpg"
会给你你的图片链接:
http://img.youtube.com/vi/OSUO0Rgfo1w/2.jpg
would give you your image link:
http://img.youtube.com/vi/OSUO0Rgfo1w/2.jpg
这篇关于如何在asp.net中向您显示管视频图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!