开发者

How to load and play video from a web service

开发者 https://www.devze.com 2023-01-31 08:30 出处:网络
I\'ve been doing a project like a cinema online. I use windows form as my client, and I have a web service. When a user is开发者_开发技巧 authorized from server, he/she can watch a video.

I've been doing a project like a cinema online. I use windows form as my client, and I have a web service. When a user is开发者_开发技巧 authorized from server, he/she can watch a video.

I really don't know how to transfer a video from webservice to client ? Are there any good tips or tutorials ? Thanks first :)


Avoid things traditionally called "web services" in .NET (such as .asmx web services and WCF SOAP web services) for this type of task. You don't want to send a gigantic blob of Base64 encoded video down to the client.

There are server products specifically designed for this kinda thing like Windows Media Services or IIS Smooth Streaming.

Basically you'll want to have your videos encoded and ready to go on the server and then perhaps use a web service to provide the authenticated client with a direct link to those streams.

0

精彩评论

暂无评论...
验证码 换一张
取 消