Macromedia Flash Server - Re: Bug in getLiveStreams method ? (Out of Office)

This is Interesting: Free IT Magazines  
Home > Archive > Macromedia Flash Server > July 2005 > Re: Bug in getLiveStreams method ? (Out of Office)





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: Bug in getLiveStreams method ? (Out of Office)
Stacy D Weng

2005-07-16, 7:45 am

I am out of the office today, 7/18. Please contact GraphicHelp-/31WZfBNw8A@public.gmane.org =
for assistance. =20

Thanks,
Stacy
[vbcol=seagreen]

Hello,

The getLiveStreams method (in the Server Management ActionScript Dictionary=
)
is supposed to return all the live streams that are currently publishing =
on
an application instance.
But I noticed that the getLiveStreams method does not work correctly as it
returns ghost connection.

Here is how I did my test:
1) Publish a live stream named "test"
2) Call the getLiveStreams method: it returns an array with the "test"
stream
3) Publish a second live stream named "test2"
4) Call the getLiveStreams method: it returns an array with the "test" and
"test2" stream
5) Close the window with the "test" stream
6) Call the getLiveStreams method: it still returns an array with the =
"test"
and "test2" stream (I checked on the Administration Console->Communication
App Inspector->Streams, the "test" stream is not displayed).
7) Publish a third live stream named "test3"
8) Call the getLiveStreams method: it returns an array with the "test",
"test2" and "test3" stream

So I think that on the server side, every new stream is added to a =
variable
but when a stream stop publishing, it forgets to delete it.
What do you think about that?
(what is suspicious is that on the administration console, the publishing
streams are well listed, so maybe did I badly used the getLiveStreams
method? If anybody has the admin.fla file reserved for the Flash
Communication Server Registered User, could he sends it to me so I would =
be
able to see how the method was used)

Here's the code I used:

The check_stream.fla (connect to the admin application and trace the live
streams):
--------------------
function onGetLivestreams()
{
this.onResult =3D function (info) {
for (var i =3D 0; i < info["data"].length; i++)
trace ("stream " + [i] + ": " + info["data"][i]);
}
}

nc =3D new NetConnection();
nc.onStatus =3D function (info) {
trace(info.code);
nc.call("getLiveStreams", new onGetLivestreams(), "chat/_definst_")=
;
}
nc.connect("rtmp://myurl:1111/admin", "username", "password");

The publish_stream.fla (publish a "test[1-2-3]" stream):
----------------------
myCam =3D Camera.get();
nc =3D new NetConnection();
nc.connect("rtmp://siteurl/chat");
ns =3D new NetStream(nc);
ns.attachVideo(myCam);
ns.publish("test"); //change this with desired publish name
video.attachVideo(myCam);
}



=3D-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=3D-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm


=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com