Virtual Happy Hour this month, Jun 28, we'll be getting a sneak preview at our soon to launch SaaS CMS!

Try our conversational search powered by Generative AI!

Playing mp4 videos from a Virtual Path Provider on iPhone/iPads


Hi Guys,

I'm running into an issue with the Virtual Path Provider where if I upload a mp4 video, I can't play the video back on a iPhone or iPad since it uses byte-range to be able to jump different parts of the system. I know I can put the file in a static directory/folder but this makes it difficult for content editors to upload new content. Is there virtual file provider which will allow both uploading files via the CMS and allow them to be accessed in a static way to allow the use of byte-ranges.



Jul 06, 2010 15:16

Same problem here.

Any solution on this one?

May 11, 2011 13:52

The file is not delivered to the client directly from the VirtualPathProvider but from a httpHandler. In case for static files from EPiServer virtualpath providers the handler is typically configured to EPiServer.Web.StaticFileHandler. The EPiServer.Web.StaticFileHandler typically uses HttpResponse.TransmitFile to deliver the file to the client.

You could either try to change the httpHandler (under location element for your vpp, e.g. PageFiles) to System.Web.StaticFileHandler (a disadvantage of that is that you loose control over cache headers) or you can write your own httpHandler (e.g. by subclassing EPiServer.Web.StaticFileHandler).

May 12, 2011 7:36

Just for reference. I run into same problem, found a solution by Mark Everard:



Apr 03, 2012 11:36
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.