
111
SERVER-SIDE ACTIONSCRIPT LANGUAGE REFERENCE FOR ADOBE MEDIA SERVER 5.0.1
Server-Side ActionScript Language Reference
Last updated 7/2/2013
Example
var netGroup = new NetGroup(nc, myGroupSpecifier);
netGroup.onStatus = function(info){
if (info.code == "NetGroup.Connect.Success"){
trace("Successful NetGroup connection");
}
}
NetGroup.post()
netGroup.post(message)
Code property Level property Description
"NetGroup.Connect.Failed" "error" The creation of or connection to a NetGroup has failed. For
example, this code is sent if there is an error in the
GroupSpecifier.
"NetGroup.Connect.Success" "status" A NetGroup was created successfully.
"NetGroup.LocalCoverage.Notify" "status" Sent when a portion of the group address space for which
this node is responsible changes.
"NetGroup.MulticastStream.Publis
hNotify"
"status" A NetStream has started publishing into a group.
"NetGroup.MulticastStream.Unpubl
ishNotify"
"status" A NetStream has stopped publishing into a group.
"NetGroup.Neighbor.Connect" "status" Sent when a neighbor connects to this node.
There are two additional properties: e.info.neighbor, a
String specifying the group address of the neighbor.
e.info.peerID, a String specifying the peerID of the
neighbor.
"NetGroup.Neighbor.Disconnect" "status" Sent when a neighbor disconnects to this node.
There are two additional properties: e.info.neighbor, a
String specifying the group address of the neighbor.
e.info.peerID, a String specifying the peerID of the
neighbor.
"NetGroup.Posting.Notify" "status" Dispatched when the group receives a message from the
NetGroup.post() method.
There are two additional properties: info.message, an
Object containing the message, and
info.messageID, a
String containing the message's messageID.
"NetGroup.SendTo.Notify" "status" Dispatched when a message sent directly to this node is
received.
The info.message property is an Object containing the
message. The
info.from property is a String specifying the
groupAddress from which the message was received. The
info.fromLocal property is a Boolean value. The value is
true if the message was sent by this node (the local node is
the node closest to the destination group address), and
false if the message was received from a different node. To
implement recursive routing, if
info.fromLocal is false,
call
NetGroup.sendToNearest() to resend the message.
Kommentare zu diesen Handbüchern