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

  1. #1

    Default Buffer Flush

    So, I'm trying to play streaming video from Dlash Media Server.
    nc = new NetConnection();
    nc.connect('rtmp://mysite/myapp');
    ns = new NetStream(nc);
    var startBufferLength = 2;
    ns.setBufferTime(startBufferLength);
    // create and set sound object
    var snd = this.createEmptyMovieClip("snd5", this.getNextHighestDepth());
    snd.attachAudio(ns);
    audio = new Sound(snd);
    audio.setVolume(80);
    // attach videodisplay
    videoDisplay.attachVideo(ns);
    videoDisplay.smoothing = true;
    ns.play("video",0);

    It's starts playing but near the end of the clip when in buffer is less than 2
    seconds but data don't streams any more, buffer flushes and the data that is in
    the buffer didn't display. Help me please what to do to display this last
    seconds.

    Yuzik Guest

  2. Similar Questions and Discussions

    1. Preventing a NetStream.Buffer.Flush
      I need to buffer a large amount of (non-live) streaming content in the background while the user is distracted with something else. So far, the only...
    2. NetStream.Buffer.Flush
      Hi people, I am getting a status code of "NetStream.Buffer.Flush" This isn't documented anywhere. Can you explain the meaning of this status...
    3. #25701 [Opn->Asn]: Calling flush from within an output buffer prevents headers from being sent
      ID: 25701 Updated by: sniper@php.net Reported By: scottmacvicar at ntlworld dot com -Status: Open +Status: ...
    4. #25701 [Opn]: Calling flush from within an output buffer prevents headers from being sent
      ID: 25701 Updated by: sniper@php.net Reported By: scottmacvicar at ntlworld dot com Status: Open Bug Type: ...
    5. waiting on flush of log buffer - try two - Assembled_onstats.txt (0/1)
      I've got this situation: A session, building an index on a fragmented temporary table, spawns 4 additional threads, one goes into a critical...
  3. #2

    Default Re: Buffer Flush

    I tried the code and it seemed to work with a video I have on FMS server hosted
    at Influxis.

    You might want to use the normal template and listen for the onStatus messages
    coming from the NetStream ns object and see if you are getting a status message
    at the time you think you are losing the data.

    stream_ns.onStatus = function(infoObject:Object) {
    trace("NetStream.onStatus called: ("+getTimer()+" ms)");
    for (var prop in infoObject) {
    trace("\t"+prop+":\t"+infoObject[prop]);
    }
    trace("");
    };

    Also you might want to try other video sources that you recorded or from
    another source.

    MotionMaker 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