Skip to main content
Participant
February 20, 2008
Question

How to provide a stable stream service in FMS2

  • February 20, 2008
  • 1 reply
  • 214 views
Hi, My name is Charley Shin.

I use FMS2 dev. version to streming Flash Videos for test. But it doesn't stable.

1. When I want to play a next video, the swf load continuously. Then I click stop button and play again. This work properly. I check that FMS2 connection is lost when the swf is loading continuously.

I guess because of FMS2 setting about wait time or connection time. So, I change "CoreGC" to 600(10 minutes). But this is not solution.

My source code is bellows. And I use "SteelExternalAll.swf" for skin. The "Buttfer Time" set to "0.1".

------------------- start --------------------------
videos.loop = false;
videos.length = 1;
videos.loaded = false;

// Path to FLVPlayback components
var m = this.my_video;

// Set the path of the first video feed
m.contentPath = videos.list[0];

// Set a 'ready' event handler to load the videos
videos.ready = function( evt:Object ):Void
{
if(!this.loaded){
this.loaded = true;
for( var n=1; n<this.list.length; n++ ){
if( videos.list.indexOf(".flv") != -1 ){
m.activeVideoPlayerIndex = n;
m.contentPath = videos.list;
this.length++;
}
}
m.activeVideoPlayerIndex = 0;
}
}
m.addEventListener("ready",videos);

// Set a 'complete' event handler to load the next video
videos.complete = function( evt:Object ):Void
{
var nextIndex = Number(evt.vp)+1;
if( nextIndex == this.length){
if( this.loop ){
nextIndex = 0;
}else{
return;
}
}
m.activeVideoPlayerIndex = nextIndex;
m.visibleVideoPlayerIndex = nextIndex;
m.play();
}
m.addEventListener("complete",videos);
-------------------- end ------------------------------------------------

2. This swf play progressive in "9,0,47,0". But this swf play when download(or buffering) is finished in "9,0,115,0".
What is differences between "9.0.47.0" and "9.0.115.0" about FLVplayback or FMS2?

TIA.
    This topic has been closed for replies.

    1 reply

    char76Author
    Participant
    February 23, 2008
    Hi.

    I almost(!) solved 2nd problem by updating FMS to 2.0.5. But the progressive does not work at playing first video and first problem is remained. Anyone?