I downloaded the .swf and .as files from this tutorial, and even tried a simpler version of this, and received the same result on both tries: NetConnection.Connect.Success
NetStream.Publish.Failed:.
The RTMP server works, because I am able to stream from QTB and FMLE with no problem. What does Wowza want from me to make this work?
Here is the simplified AS of what I am trying to do:
nc = new NetConnection();
nc.onStatus = function(info) {
trace("LEVEL: "+info.level+" CODE: "+info.code);
if (info.code == "NetConnection.Connect.Success") {
startStreamPublish();
}
};
startStreamPublish = function() {
// attach the Camera feed to an Embedded Video Object named, "my_video"
my_video.attachVideo(Camera.get());
// attach a NetStream to the variable, publish_ns
publish_ns = new NetStream(nc);
// attach the Microphone and Camera to the publish_ns stream
publish_ns.attachAudio(Microphone.get());
publish_ns.attachVideo(Camera.get());
// start publishing the combined camera and microphone feed
publish_ns.publish("webcast_test.sdp", "live");
};
nc.connect("rtmp://myip:port/app_name", "username", "password");