dcsimg
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: SOS....FLVPlayback buffering %

  1. #1
    Junior Member
    Join Date
    Jul 2004
    Location
    Ukraine
    Posts
    7

    SOS....FLVPlayback buffering %

    hey guys
    i neeed your help

    - i use flvplayback component(flash 8) for streaming video from vitalstream.com
    - interface as on productorials.com
    - flvplayback and flvplayback custom ui components are skinned individually
    - so question is - HOW CAN I SHOW BUFFERING %? - because flvplayback doesn`t have any property similar to NetStream.bufferLength property. It shows progress bar only.
    ------------
    sorry for duplicating message
    it is related to 3 forums, but i dont know how to make links in several forums to one message.
    Last edited by nikstep; 03-12-2006 at 01:15 PM.

  2. #2
    Flash Video Moderator Wheels's Avatar
    Join Date
    Dec 2000
    Location
    Minneapolis
    Posts
    1,590
    When streaming off of Vital Stream I usually just create a buffering animation - then I check the player for the - evt.info.code == "NetStream.Play.Reset" event while checking that time is greater than 0.

    Code:
    this.onEnterFrame = function() {
    		ct = Math.floor((getTimer()/1000)-st);
    		time = player.time;
    		if (time>0  && this.resetCalled == true) {
    			player._visible = true;
    			vid_controller._visible = true;
    			this.buffering_mc.stop();
    			this.buffering_mc._visible = false;
    			this.vid_controller.startUpdateUI();
    			this.onEnterFrame = undefined;
    		}
    		if (ct>=30) {
    			this.timedOut();
    			this.onEnterFrame = undefined;
    		}
    	};
    I have the player event calling "this.resetCalled"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center