Results 1 to 5 of 5

Thread: Flash ActionScript RTMP publisher error NetStream.Publish.Failed

  1. #1
    Join Date
    May 2013
    Posts
    21

    Default Flash ActionScript RTMP publisher error NetStream.Publish.Failed

    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");
    Last edited by nitsuj102284; 05-24-2013 at 03:25 PM.

  2. #2
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    Do you have ModuleRTMPAuthenticate enabled?

    With credentials passed as args of NetConnection.connect, you can use this method:
    http://www.wowza.com/forums/content....ection-connect

    And this version has a db lookup example included:
    http://www.wowza.com/forums/content....mySQL-database

    Richard

  3. #3
    Join Date
    May 2013
    Posts
    21

    Default

    Thanks for your reply, Richard. I'll try this.

    Quote Originally Posted by rrlanham View Post
    Do you have ModuleRTMPAuthenticate enabled?

    With credentials passed as args of NetConnection.connect, you can use this method:
    http://www.wowza.com/forums/content....ection-connect

    And this version has a db lookup example included:
    http://www.wowza.com/forums/content....mySQL-database

    Richard

  4. #4
    Join Date
    May 2013
    Posts
    21

    Default

    Richard,

    I followed the first link and moduleOnConnectAuthenticate was already enabled. I found another post on the forum where you recommended to someone that they try moduleOnConnectAuthenticate2, so I replaced this the former with the latter, but I receive the same error still. I can connect, but NetStream publish fails.

  5. #5
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    If you still have ModuleRTMPAuthenticate enabled, you should disable that. moduleOnConnectAuthenticate is the one that works with passing credentials as arguments of NetConnection.connect. moduleOnConnectAuthenticate2 handles credentials in querystring of the rtmp connection string.

    Run Wowza in stand-alone (/bin/startup.bat) mode so you can see log output in the console.

    Richard

Similar Threads

  1. Actionscript 3 and OSMF Video Publisher/Encoder with iPhone
    By WebDev4Life in forum Media Players and Devices Discussion
    Replies: 2
    Last Post: 07-30-2013, 08:26 AM
  2. Replies: 1
    Last Post: 06-24-2013, 06:41 AM
  3. Flash-based RTMP Publisher
    By KoWa90 in forum Live Streaming and Encoder Discussion
    Replies: 1
    Last Post: 07-01-2012, 02:23 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •