使用 VB.NET、MYSQL 和 ASP.NET 进行网络广播/广播
我目前正在进行我的项目网络广播,我的想法是通过VB.NET和ASP.NET可以连接的通用数据库来捕获主机桌面作为图像/jpeg文件并将其保存到数据库中。 最后,从数据库中获取一个或多个图像并将其呈现给 ASP.NET。
1.)VB.NET-> 捕捉图像 2.) MYSQL-> 将图像写入 BLOB 3.) ASP.NET-> 二进制写入网页
我的问题是渲染到 ASP.NET 上的图片不稳定且闪烁,您知道我可以消除这些问题并在不牺牲设备性能的情况下提供更流畅的图片动画吗? .?????
我真的很感激任何提示或建议。 (^_^).,
这是我在网页上输出图片的方式:
If dr.HasRows then
dr.Read()
Response.ContentType = "image/jpeg" 'gets or sets the type of output stream
Response.BinaryWrite(dr.Item("file")) 'writes a stream of binary characters to the http output stream
Else
我设置了1秒刷新页面,但是刷新页面越多,闪烁就越多。
I am currently working on my project webcasting, my concept is to capture the desktop of the host computer as an image/jpeg file and save it to the database, by having a common database VB.NET and ASP.NET can connect. And lastly, get the image/images from the database and render it to ASP.NET.
1.) VB.NET -> capture image
2.) MYSQL -> write image as BLOB
3.) ASP.NET-> binary write to web page
My problem is that the pictures that is rendered on to ASP.NET is choppy and flickery, do you know any way or method that i can eliminate these problem and provide a smoother picture animation as a result without sacrificing equipment performance.?????
I would really appreciate any tip or suggestion.,. (^_^).,
here is the way i output pictures on the webpage:
If dr.HasRows Then
dr.Read()
Response.ContentType = "image/jpeg" 'gets or sets the type of output stream
Response.BinaryWrite(dr.Item("file")) 'writes a stream of binary characters to the http output stream
Else
I set 1 second to refresh the page, but the more I refresh the page, the more flicker i get.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否想创建一个具有实时视图的伪屏幕录像机?
如果是这样,在从屏幕捕获到数据库并渲染回 ASP.NET Web 应用程序的体系结构中,有太多层相互等待完成,因此您将无法获得真正流畅的视图。
我建议看看 LogMeIn 如何做到这一点(www.logmein.com) - 需要启动某种活动对象(WinForms 应用程序、ActiveX 控件、Silverlight 应用程序等)来建立与“源”PC; 这是将图像“流式传输”给客户端并提供合理体验的唯一方法。
至少,您需要在 AJAX 中执行一些操作来后台刷新图像,然后在 ASP.NET 前端顺利地替换它,或者创建一个活动的可执行文件来为您建立直接流或轮询数据库。 希望能有所帮助...
Are you trying to create a pseudo-screen recorder with a realtime view?
If so, with the architecture of going from a Screen Capture to DB and render back out to an ASP.NET web application, there are so many layers waiting on each other to complete there that you're not going to get a really smooth view.
What I'd suggest is taking a look at how LogMeIn does this (www.logmein.com) - some kind of active object will need to be launched (WinForms app, ActiveX control, Silverlight app, etc) that establishes a direct connection to the "source" PC; that's the only way you can 'stream' images to the client and provide a reasonable experience.
At minimum, you will need to do something in AJAX to background-refresh the image and then smoothly replace it on the ASP.NET front end, or create an active executable that will establish a direct stream or poll the database for you. Hope that helps somewhat...