Use Asp.net for video file Authentication

Source: Internet
Author: User

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?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.