HTML 快照
使用 asp.net,我需要生成 YouTube 视频的快照。 我可以访问 youtube 生成的代码,以便将他们的视频集成到其他网站中。
基本上我想做的是 HTML 快照的功能,拍摄一些 html 的图片,但我只对视频感兴趣。
我怎样才能在 asp.net 中解决这个问题,(购买 HTML 快照不是一个选项)
Using asp.net, I need to generate a snapshot of an youtube video.
I have access to the code that youtube generates for integrating their vids into other sites.
Basically what I want to do is what HTML Snapshot does, take a picture of some html, but I`m only interested in the video.
How can I approach this in asp.net, (buying HTML Snapshot is not an option)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我相信这就是您正在寻找的:
http://www.codegod.de/WebAppCodeGod/Screenshot-of-Webpage-with-ASP-NET-AID398.aspx
它甚至有您需要的代码和一切。 显然,您必须对其进行修改以满足您的需求,但该网站提供了获取有问题的网站屏幕截图所需的基本代码。
如果您只想要视频的快照,则必须对其进行裁剪。 由于视频图片始终位于同一位置,因此您可以简单地裁剪掉不需要的额外内容。 http:// michael.sivers.co.uk/post/2007/08/Crop-and-resize-an-image-in-ASPNET.aspx
I believe this is what you're looking for:
http://www.codegod.de/WebAppCodeGod/Screenshot-of-Webpage-with-ASP-NET-AID398.aspx
It even has the code you need and everything. You'll obviously have to modify it to fit your needs, but that site provides the basic code you need for getting a screenshot of a website problematically.
If you just want a snapshot of the video, then you'll have to crop it. Since the video picture will always be in the same place, you can simply crop out the extra stuff that you don't need. http://michael.sivers.co.uk/post/2007/08/Crop-and-resize-an-image-in-ASPNET.aspx