[英]Send data from website to windows application
I want to know what is the best method to send data from website to a windows application. 我想知道从网站向Windows应用程序发送数据的最佳方法是什么。 I want to make a video encoder and it'll work like this: Customer will upload videos and when uploading progressed finished website send a signal and data (like: Video resolution and bit-rate) to a windows application to start encoding videos.
我想制作一个视频编码器,它的工作方式如下:客户将上传视频,并在上传进度完成的网站上发送信号和数据(例如:视频分辨率和比特率)到Windows应用程序以开始对视频进行编码。 I want to do it with VB.Net or C#.net.
我想用VB.Net或C#.net做到这一点。
Have your .NET program listen for HTTP requests from the outside world. 让您的.NET程序侦听来自外界的HTTP请求。 When a request is received, that's your signal to start encoding.
收到请求后,这就是开始编码的信号。 You can get data (bitrate, ...) from the query portion of the request.
您可以从请求的查询部分获取数据(比特率,...)。
Example workflow of a pure HTML/.NET implementation: 纯HTML / .NET实现的示例工作流程:
HttpListener
(see MSDN ) to act as a simple web server. HttpListener
的实例(请参阅MSDN )以充当简单的Web服务器。 HttpListener
receives a request, send back a simple "thank you" page (or whatever) and start encoding. HttpListener
收到请求时,发送回一个简单的“谢谢”页面(或其他内容)并开始编码。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.