I'm using osmf and I'm tring to stream over http a m4v file (osmf should support it) Instead of streaming it, it downloads the whole file and when it's done, it plays it. How can I make it stream it instead of downloading it?
My code is:
var resource:URLResource = new URLResource("http://path/to/file.m4v");
mediaFactory = new DefaultMediaFactory();
var element:MediaElement = mediaFactory.createMediaElement(resource);
player = new MediaPlayer(element);
container = new MediaContainer();
container.addMediaElement(element);
videoContainer.addChild(container);
I have tried instead of using the mediaFactory:
var videoElement:VideoElement = new VideoElement(resource ,new HTTPStreamingNetLoader());
No success.