Question
How to provide a stable stream service in FMS2
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.
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
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.