Mailing List
Home
Forum Home
Flash Pro
Subjects
Firework Effect
setInterval bug identified and fixed
setInterval bug identified and fixed
ScrollPane component doesn 't auto update
Help: MX 2004 How to script a print button to print the entire sli
Event Dispatcher between classes
memory management removeMovieClip /
MX2004 Dataset itemClassName
Order of events per frame
XML to Object help
Textfield prototype question
Flash and QuickTime VR
Reading and displaying RSS feeds in Flash MX
Flash MX 2004 Sucks
AW: [Flashcoders] Switch/Case vs If/else
AW: [Flashcoders] Switch/Case vs If/else
Flash Interface with 10mb xml file
Web Service Results
Listener Object 's best practice
 
Unexpected streaming behaviour?

Unexpected streaming behaviour?

2004-02-27       - By Martin Fleck

 Back
Reply:     1     2  


hello flashcomm group,

i have found an unexpected streaming behaviour when playing a stream via modem
(5000 bytes per second). The stream bufferTime is set to 3 seconds. When
streaming a video, the default behaviour should look like this:

Movie starts
Buffering 3 seconds
Movie plays buffered video
Buffering 3 seconds
Movie plays buffered video
Buffering 3 seconds
Movie plays buffered video
Buffering 3 seconds
Movie plays buffered video
Movie ends

I hope this was the correct behaviour. Here are my results:

Movie starts
Buffering 3 seconds
Movie plays buffered video
Buffering 3 seconds
Movie drops frames
Buffering 3 seconds
Movie drops frames
Buffering 3 seconds
Movie drops frames
Movie ends

The video plays only after the first buffering, after the next bufferings the
videoframes seems to be dropped. I have tested the following sample code on 3
different servers with fcs version 1.5 including the update, it never works as
expected here. The bug (?) occurs on Windows XP (localhost), Windows 2003,
RedHat 9  and RedHat Linux 7 (Mediatemple). Another server with Windows 2000
works fine! Can anybody else reproduce this here http://www.powerflashers.com
/flashcom/play/play.html (Mediatemple)? Don?t forget to use modem speed
(NetLimiter).

This is the used code:

conn = new NetConnection();
conn.connect ("rtmp:/test_record");
conn.onStatus = function (info) {
  if (info.code == "NetConnection.Connect.Success") {
    stream = new NetStream (this);
    stream.setBufferTime (3);
    stream.play ("test39");
    video.attachVideo (stream);
  }
};

onEnterFrame = function () {
  out2 = stream.time;
};

Thanks.

--
Martin Fleck


-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
Supported by Fig Leaf Software
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
Lower Prices for Certified Training! Check out new lower prices for
Certified Macromedia Training from Fig Leaf Software. Expand your
skill set with courses in ColdFusion, Flash, Rich Internet
Applications and .NET in the new year.  Fig Leaf Software provides
the highest caliber instruction at our training centers in Washington
D.C., Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at
your location.

Get the details at http://training.figleaf.com/
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To unsubscribe, e-mail: flashcomm-unsubscribe@(protected)
For additional commands, e-mail: flashcomm-help@(protected)