How to a stable stream service in FMS2

Ask a Question related to Macromedia Flash Flashcom, Design and Development.

  1. #1

    Default How to 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.

    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 60000(10 minutes). But this is not solution.

    My source code is bellows.

    ------------------- 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[n].indexOf(".flv") != -1 ){
    m.activeVideoPlayerIndex = n;
    m.contentPath = videos.list[n];
    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 ------------------------------------------------

    TIA.

    char76 Guest

  2. Similar Questions and Discussions

    1. Live encode a MMS stream to FMS2
      Hello, I got some live audio streams encoded using Windows Media Server (MMS streams). I whant to use FMS2 to redistribute theses streams to...
    2. AS3 + FMS2 = problem with "stream" MP3
      I use AS3! I can not get mp3 "duration" (Net Stream) where event: onID3??????? how it works???? and it works????? :) help plz :)
    3. FMS2 fails to record the stream
      Hi, This has been a frustrating week, so i REALLY appreciate any help in advance We have installed FMS 2.0.4 on linux (tried both ubunto and...
    4. Problem with FMS2 calling web service with complex typeas input
      I wrote a web service in weblogic 9.2: @WebMethod public LoginResponse Login2(LoginRequest loginRequest) { LoginResponse loginResponse = new...
    5. FMS2 on Windows: Can't get flash to stream
      I've installed FMS2 on a Windows 2000 machine with intention to evaluate flash video as a streaming system. The server starts properly and I can...
  3. #2

    Default Re: How to provide a stable stream service in FMS2

    Hi.

    I almost solved 2nd problem by updating FMS to 2.0.5.

    But first is remained. Anyone?
    char76 Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139