Use asp.net video file authentication

My aim is to authenticate and anti-hotlinking streaming media using asp.net.

The main idea is as follows:
1, the requested video file to the ISAPI route from IIS asp.net by adding extensions in IIS, such as .wmv, .rm, the handler for asp.net Aspnet_isapi.dll the ISAPI
2, Next, write your own httpHandlers, and configure the application's web.config, indicating the ASP.net httphandlers route requests to the extension of .wmv.rm etc. I have written, then we request the identity Http Handlers certification.
3, after authentication by, and then read the corresponding video file, passed through to the client.

But there are still several issues to be studied, Part 3, how to read large binary files, and spread through to the client how unclear. With BinaryReader asp.net will not be a waste of resources, it is the memory is not to read all the documents, wrote to clients? How the client automatically recognize the type of a stream file (or a wmv rm, etc.), so that the corresponding pop player for playback

Reproduced in: https: //www.cnblogs.com/baoposhou/archive/2006/10/20/534841.html

Guess you like

Origin blog.csdn.net/weixin_34148340/article/details/93320727