Click here to Skip to main content
15,881,027 members
Please Sign up or sign in to vote.
2.60/5 (2 votes)
See more:
Hi,
We have an iOS application and we want the users of this application to be able to view videos that were saved to a local network directory somewhere.
In order to achieve this we created a web site running on IIS7 with access to the local network that will be responsible for supplying the video files requested by the app statically. The app does not have access to the videos saved in the network, so it’s up to the website to find the directory path of the video and return the file to the app.
Our idea was to use the UIWebview component in the iOS application for viewing the video’s returned from the website.
The trouble is that we are not sure how to do this. Our restrictions are:
(1) We do not wish to pre-define a virtual directory that points to a physical path for the videos to be saved to since we want the users to be able to save their videos anywhere they wish on the network.
(2) We want to be able to work with different types of videos with different types of encoding without having to define each one.
(3) We do not want to copy the video file from one place to another for this causes unnecessary overhead and we wish to return the file itself and not a processed copy of it like with a byte array.
We were looking into using a StaticFileHandler but are not sure how this fits in and if this solution will satisfy all our needs, mainly the one regarding the virtual directories.
So my question is if there is a way to accomplish this scenario and if so how?
Thanks in advance,
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900