html5 - Let Url point to static file -


i have mvc4 application serving html 5 code client. using html 5 video tag show video. put video file application root directory access it, want implement scenario. root directory app i.e. c:\myapp while video file in directory c:\videodir.

now want use video tag , pass url source looks

http://myurl/myapp/media/video/test.mp4

i need find way redirect url actual videofile inside of videodir without expose videodir via http public. reason approach is, want check permissions before serving video. if expose videodir public via http, knows baseurl able watch video s/he wants to.

i tested bit filecontentresult, filepathresult , filestreamresult. chrome can handle result, not possible seek , worst video tag of ios's safari cannot consume these results, while consume original .mp4 file.

any idea or suggestions?

in iis, add virtual directories inside app folder name of following

medias

now can access video file below

http://myurl/myapp/media/video/test.mp4 

note - please add virtual directory inside app , name virtual directory medias point videodir

hope you


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -