My goal is to use Asp.net for streaming media authentication and anti-leeching.
The main idea is as follows:
1. Route video file requests from IIS to the ISAPI of Asp.net, and process by adding extensions such as. wmv and. rm to IIS.ProgramISAPI aspnet_isapi.dll for Asp.net
2. Next, write your own httphandlers and. config, indicating that Asp.net will. WMV. requests with extensions such as RM are routed to self-compiled httphandlers. Then, we authenticate the requests in HTTP handlers.
3. After the authentication is passed, read the corresponding video file and pass it to the client.
However, there are several questions to be studied. Part 1 is unclear about how to read large binary files and how to implement them by spreading them to the client. Will binaryreader using Asp.net consume a lot of resources? Does it need to write all the files into the memory before writing them to the client? How does the client automatically identify the stream file type (WMV or RM) and automatically jumps out of the corresponding player for playing?