How do I stream a video file using ASP.NET MVC?

前端 未结 3 1403
难免孤独
难免孤独 2021-02-13 22:21

I am developing a web site where people can access audio and video files. I have the code for downloading the files, which consists of two action methods as follows...



        
3条回答
  •  無奈伤痛
    2021-02-13 22:47

    The possible way to play a video from Database / PC

    source property needs to get url not the string,

    so @Url.Content converts the video-path as Url

提交回复
热议问题