
128
SERVER-SIDE ACTIONSCRIPT LANGUAGE REFERENCE FOR ADOBE MEDIA SERVER 5.0.1
Server-Side ActionScript Language Reference
Last updated 7/2/2013
Availability
Flash Media Server 3.5.
Parameters
connection A NetConnection object.
Returns
A ProxyStream object.
Example
The following example creates an instance of the ProxyStream class:
nc = new NetConnection();
nc.connect("rtmp://amsexample.adobe.com/testapp");
nc.onStatus(info){
if(info.code == "NetConnection.Connect.Success"){
ps = new ProxyStream(nc);
// Use ps.onStatus to check status
}
};
ProxyStream.onStatus()
ps.onStatus = function(infoObject){})
Called every time a status change or error occurs in a ProxyStream object.
Availability
Flash Media Server 3.5
Parameters
infoObject An Object with code and level properties that provide information about the status of a ProxyStream
object. Both properties are strings.
Code property Level property Description
ProxyStream.Proxy.Start status Successfully published the source stream.
ProxyStream.Proxy.Stop status Successfully stopped the source stream.
ProxyStream.Proxy.BadName error The publish attempt failed because the local name was invalid or
exists.
Komentáře k této Příručce