简体   繁体   English

使用VB.NET,MYSQL和ASP.NET进行网络广播/广播

[英]Webcasting/Broadcasting using VB.NET, MYSQL and ASP.NET

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. 我目前正在进行项目网络广播,我的概念是通过具有公共数据库VB.NET和ASP.NET可以将主机的桌面捕获为图像/ jpeg文件并将其保存到数据库。 And lastly, get the image/images from the database and render it to ASP.NET. 最后,从数据库中获取图像并将其呈现到ASP.NET。

1.) VB.NET -> capture image 2.) MYSQL -> write image as BLOB 3.) ASP.NET-> binary write to web page 1.)VB.NET->捕获图像2.)MYSQL->将图像写为BLOB 3.)ASP.NET->二进制写入网页

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.????? 我的问题是,在ASP.NET上呈现的图片不稳定且闪烁,您知道我可以消除这些问题并提供更平滑的图片动画而又不牺牲设备性能的任何方法或方法。 ?

I would really appreciate any tip or suggestion.,. 我真的很感谢任何提示或建议。 (^_^)., (^ _ ^)。,


here is the way i output pictures on the webpage: 这是我在网页上输出图片的方式:

If dr.HasRows Then 如果Dr.HasRows然后

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. 我设置1秒钟刷新页面,但是刷新页面越多,闪烁越多。

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. 如果是这样的话,从截屏到数据库再渲染回ASP.NET Web应用程序的体系结构中,有太多的层互相等待完成,因此您将无法获得真正的平滑视图。 。

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; 我的建议是看一下LogMeIn如何做到这一点(www.logmein.com)-需要启动某种活动对象(WinForms应用程序,ActiveX控件,Silverlight应用程序等),以建立与之的直接连接“源” 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. 至少,您将需要在AJAX中执行某些操作以对图像进行后台刷新,然后在ASP.NET前端上平滑替换它,或者创建一个活动的可执行文件来为您建立直接流或轮询数据库。 Hope that helps somewhat... 希望能有所帮助...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM