Hello,

Andy Roberts wrote:
My REST service has to also serve static mp4 video files - for use on an iPhone. I'm having problems where the iPhone won't play the video files when I call an open() command on the file URL which is located in the static content area of my restlet application. My URL is targeting the /data resource and is of the form http://.../data/videos/jetman_4.mp4
[...]
streamApplication.getTunnelService().setEnabled(true);
streamApplication.getTunnelService().setMethodTunnel(true);
streamApplication.getTunnelService().setMethodParameter("method");
streamApplication.getMetadataService().addExtension("mp4", MediaType.VIDEO_MPEG);

I haven't tried, but this doesn't seem to be the appropriate media type for mp4. I'd try MediaType.valueOf("video/mp4") instead of MediaType.VIDEO_MPEG (which I presume is "video/mpeg"). This might match the content-type the iPhone is looking for.


Best wishes,

Bruno.

Reply via email to