2

I'm having an issue streaming mp3 files form flash media server where the sound will be very choppy. When polled every second the newStream.time property has kind of crazy numbers like 1,3,6,8,10 always skipping a second or two. Raising the buffertime seems to help the problem but not fix it. Any ideas?

Thanks very much.

jake
  • 21
  • 1
  • Out of curiosity, what is your internet speed? It sounds like your internet speed is quite slow (an obvious problem for other users down the road, of course). – CodeMouse92 Jan 03 '12 at 20:27

2 Answers2

1

For HLS stream (to iOS device) you'll need to purchase AAC on FMLE.

alex
  • 11
  • 1
0

you have to do like this

{     
        var startPlay:Boolean=false;
        ns.play("your-video-url");
        ns.pause();
        ns.seek(0);
        addEventListener(Event.ENTER_FRAME, myFunction);

        function myFunction(E:Event):void{
        var loaded:number=ns.byteloaded/ns.totalbyte; 
        var tmp:Number=Math.Ceil(loaded);
        if(tmp>=4){
        startPlay=true;
        removeEventListener(Event.ENTER_FRAME, myFunction);
        ns.resume();
        }
        //if you want to make a progress 
        //progressText.text="Please wait a second";

        }


    }
Ameed
  • 39
  • 3