4 Replies Latest reply on Jul 20, 2011 12:50 PM by MarceloReborn

    Problems creating a DynamicStream player

    MarceloReborn

      I'm using OSMF Dev Guide to create some examples, like this. But my player is doesn't working, I don't even received any error message.

      There's my code: http://pastebin.com/EHySNRm0

       

      I'm using data from a dynamic stream XML, generated by BitsOnTheRun, which I use in my extended FLVPlayback: http://pastebin.com/49GaQUR7

       

      It's very strange because I use the very same data on my custom FLVPlayback and it works, using values from <jwplayer:streamer> and <media:content>.

      Am I missing something?

       

      Thanks in advance!

        • 1. Re: Problems creating a DynamicStream player
          Silviu Vergoti Adobe Employee

          Hi,

           

          OSMF does not support the xml file type you provided. Instead, please use the f4m format.

           

          On the other hand, cloudfront uses application instance = true. You can give this in f4m or just providing resource.urlIncludesApplicationInstance=true.

           

          Example:

           

          <?xml version="1.0" encoding="utf-8"?>
          <manifest xmlns="http://ns.adobe.com/f4m/1.0">
              <id>Dynamic Streaming</id>
                <media bitrate="4520" url="asdfg-0005.mp4" width="1080" />
                <media bitrate="2840" url="asdfg-0004.mp4" width="720" />
                <media  bitrate="1810" url="asdfg-0003.mp4" width="480" />
                <media  bitrate="1130" url="asdfg-0002.mp4" width="320" />
                <media  bitrate="570" url="asdfg-0001.mp4" width="242" />
              <baseURL>rtmp://qwerty.cloudfront.net/zxc/zx</baseURL>
              <urlIncludesApplicationInstance>true</urlIncludesApplicationInstance>
          </manifest>

           

          Let me know if this worked.

          1 person found this helpful
          • 2. Re: Problems creating a DynamicStream player
            MarceloReborn Level 1

            Thanks for the answer, Silviu, but did you read my code?

             

            I'm not providing the XML to my player, but only using its data, like urls and filenames:

             

            var resource:DynamicStreamingResource = new DynamicStreamingResource("rtmp://qwerty.cloudfront.net/zxc/zx") ;
            vector = new Vector.<DynamicStreamingItem>(5);

            vector[0] = new DynamicStreamingItem("mp4:asdfg-0005.mp4", 4520) ;
            vector[1] = new DynamicStreamingItem("mp4:asdfg-0004.mp4", 2840) ;
            vector[2] = new DynamicStreamingItem("mp4:asdfg-0003.mp4", 1810) ;
            vector[3] = new DynamicStreamingItem("mp4:asdfg-0002.mp4", 1130) ;
            vector[4] = new DynamicStreamingItem("mp4:asdfg-0001.mp4", 570) ;
            • 3. Re: Problems creating a DynamicStream player
              Silviu Vergoti Adobe Employee

              I read it, that is why i suggested to use:

               

              resource.urlIncludesApplicationInstance=true;

               

              You might need to drop the stream extension, as well.

               

              If you still are not able to make it work, please share the real streams and I'll be glad to debug them for you.

              • 4. Re: Problems creating a DynamicStream player
                MarceloReborn Level 1

                The resource.urlIncludesApplicationInstance=true; worked for me!

                 

                Thanks!