在服务器端截取 Flash 游戏/动画的屏幕截图? (或者客户端?)
我只是想知道,服务器端脚本是否可以截取服务器上的 Flash 动画(无论动画的时间、分辨率等)?
同样可以接受的是一种可以使用客户端脚本(例如 JavaScript)的解决方案,但随后可以将屏幕截图上传到服务器(实际上,现在我正在考虑这一点,这个更有意义......但是我就这样保留标题,这样听起来更有趣)。
那么有人有什么想法吗?
为了让您更好地理解,这里有一个例子:
假设我正在创建一个 Flash 游戏网站或 Flash 动画网站。现在我的服务器上已经有 22,403 个 Flash 动画(呃...),并希望我的用户能够在玩游戏之前先睹为快,在开始之前向他们提供游戏内部的屏幕截图或图像(只需就像大多数 Flash 游戏网站一样......)。
是的,我真的不想自己制作所有 22k 大小的快照(加载游戏,按打印屏幕,粘贴到 Microsoft Paint,剪切游戏,保存并上传......我的意思是,认真的?
我希望你明白 如果你有什么
想法,请毫不犹豫地告诉我!
I'm just wondering, is it possible for a server-side script to take screenshot of a flash animation (no matter the time in the animation, resolution etc) located on the server?
Also acceptable would be a solution that could make use of client-side scripting, like JavaScript, but which could then upload the screenshot to the server (actually, now that I'm thinking about it, this one makes more sense... but I'll just leave the title like that, so it sounds more interesting).
So does anyone have any idea?
For you to understand better, here is an example:
Say I'm starting a flash games website, or flash animations website. Now I already have 22,403 flash animations on my server (duh...) and want my users to be able to take a sneak peak in the game before they play it, offering them a screenshot or image from inside the game before starting (just like most of the flash game websites do...).
And yeah, I don't really want to make all the 22k-something snapshots myself (load the game, press printscreen, paste in Microsoft Paint, cut the game, save and upload... I mean, seriously?
I hope you understood me a little.
If you have any ideas, please don't hesitate to shout it to me!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用 webkit 和虚拟 X 服务器。这是一个简单的工具:
http://cutycapt.sourceforge.net/
希望对您有帮助。
You can use webkit and virtual X server. Here is a simple tool:
http://cutycapt.sourceforge.net/
Hope it helps you.