How to serve static video files to iOS application RRS feed

  • General discussion

  • 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)   (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)   (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)   (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, 

    Monday, February 24, 2014 12:40 PM

All replies