C # Private Video Web API

I am creating a small web application that receives requests from clients and returns a video stream to them.

I have an api, for example:

[GET] api / video? id = {videoId}

which clients will transfer their authorization token in the header in order to receive a video stream from the service (I do not want people who do not have access to protected video on the service, just like a private video on Youtube).

I read and implemented this tutorial: http://www.strathweb.com/2013/01/asynchronously-streaming-video-with-asp-net-web-api/

But I wonder if my implementation is suitable or not? Since my system is small now, but in the future I can become bigger to serve more and more customers.

Can anybody help me? Thank.

+4
source share
1 answer

If you are trying to provide a "private" video, I believe that you can break down the architecture into 2 basic types:

  • Real secure file access . There is NO real real physical access to the file (video), it is stored in the database or somewhere where only the IIS application pool user is available (disk / internal network / etc)
  • FAKE - , http-, , "" ... , , " ".... , , ... X , , - "".

"" ... ... ... ( ).... , CDN, ..

: (), , "" (/), / ..... ..... .. , PRESENT FUTURE, ... "" "", .

: Asynchronously streaming video with ASP.NET Web API, , , , , FAKE PRIVATE.... "Asynchronous streaming", .

0

Source: https://habr.com/ru/post/1658056/


All Articles