5 Replies Latest reply on Oct 18, 2012 1:50 AM by Silviu Vergoti

    Multi-bitrate HDS using DynamicStreamingResources + Items




      We are hosting video files on an FMS 4.5 server, and trying to reference the media items in Flex 4.5.1 with urls such as:






      We had a sample working fine using the StreamingURLResource object, which works with a single URL:


      var resource:URLResource = new URLResource("http://10.x.x.x/hds-vod/video_480p.mp4.f4m");

      video = mediaFactory.createMediaElement(resource);



      However, when trying to implement the multiple items with a DynamicStreamingResource and the f4m references w/ a vector of DynamicStreamingItems, we cannot load the media streams.


      var dsResource:DynamicStreamingResource = new DynamicStreamingResource("http://10.x.x.x/hds-vod/");

      dsResource.urlIncludesFMSApplicationInstance = true;

      dsResource.streamItems.push(new DynamicStreamingItem("video_480p.mp4.f4m", 500, 640, 480));

      dsResource.streamItems.push(new DynamicStreamingItem("video_720p.mp4.f4m", 1000, 1280, 720));

      video =  new VideoElement(dsResource);


      The MediaError being thrown is "Stream not found". We're having trouble debugging this.

      Are we using the correct approach for loading multiple bit rate videos, or is there another class we should be using? Thanks!