Results 1 to 4 of 4

Thread: AS3 live encoder does not work

  1. #1
    Join Date
    Oct 2011
    Posts
    18

    Default AS3 live encoder does not work

    Hi

    I am writing live encoder with adobe air but Require password authentication does not work

    my as3 server connect CODE :

    PHP Code:
                    nc = new NetConnection();
            
    nc.connect(connectServer,username,password);
            
            
    // get status information from the NetConnection object
            //nc.addEventListener(NetStatusEvent.NET_STATUS, ncOnStatus);
            
            //connect.connectButton.label = "Disconnect";
            
            // uncomment this to monitor frame rate and buffer length
            //setInterval(updateStreamValues, 500);
            
            
            
    videoCamera.clear();
            
    videoCamera.attachCamera(camera); 

    net stream code :

    PHP Code:
              nsPublish = new NetStream(nc);
            
            
    //nsPublish.addEventListener(NetStatusEvent.NET_STATUS, nsPublishOnStatus);
            
            // set the buffer time to zero since it is chat
            
    nsPublish.bufferTime 0;
        
            
    // publish the stream by name
            
    nsPublish.publish(streamName);
            
            
    // add custom metadata to the stream
            
    var metaData:Object = new Object();
            
    metaData["description"] = "Chat using VideoChat example."
            
    nsPublish.send("@setDataFrame""onMetaData"metaData);

            
    // attach the camera and microphone to the server
            
    nsPublish.attachCamera(camera);
            
    nsPublish.attachAudio(microphone);
            
    //starttext.text = "DURDUR";
            //doPublish.label = 'Stop';
            //doSubscribe.enabled = true;
            
    publishingyn false
    FLASH ERROR
    nc: NetConnection.Connect.Success (Connection succeeded.)
    nsPublish: NetStream.Publish.Denied (RTMP Publishing not allowed.  Client is not in list of valid encoders.)
    nc: NetConnection.Connect.Closed (undefined)
    WOWZA LOG
    2016-02-28	15:31:15	EET	comment	server	INFO	200	-	ModuleCoreSecurity.onAppStart[live/_definst_]: Publish: AllowedEncoders: securityPublishValidEncoders:Wirecast/|FME/|FMLE/|Wowza GoCoder*|Lavf/|UA Teradek/|KulaByte/|VidBlaster/|XSplit/	-	-	-	782.005	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    2016-02-28	15:31:15	EET	comment	server	INFO	200	-	ModuleCoreSecurity.onAppStart[live/_definst_]: Publish: block duplicate stream names : false	-	-	-	782.006	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    2016-02-28	15:31:15	EET	comment	server	INFO	200	-	ModuleCoreSecurity.onAppStart[live/_definst_]: Publish: RTMP Authorization: password file:C:\Program Files (x86)\Wowza Media Systems\Wowza Streaming Engine 4.4.0\conf\publish.password	-	-	-	782.007	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    2016-02-28	15:31:15	EET	comment	server	INFO	200	-	ModuleCoreSecurity.onAppStart[live/_definst_]: Play: SecureConnection: securityPlayRequireSecureConnection:false	-	-	-	782.007	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    2016-02-28	15:31:15	EET	comment	server	INFO	200	-	ModuleCoreSecurity.onAppStart[live/_definst_]: Play: securitySecureTokenVersion property is missing, using SecureToken Version 1, play security enabled for RTMP only	-	-	-	782.007	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    2016-02-28	15:31:15	EET	app-start	application	INFO	200	_definst_	live/_definst_	-	-	-	782.009	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-
    2016-02-28	15:31:15	EET	connect-pending	session	INFO	100	127.0.0.1	-	_defaultVHost_	live	_definst_	0.043	[any]	1935	rtmp://localhost:1935/live	127.0.0.1	rtmp	unknown	WIN 13,0,0,182	906119770	3351	3073	-	-	-	-	-	-	-	-	-	-	-	-	-	rtmp://localhost:1935/live	-
    2016-02-28	15:31:15	EET	connect	session	INFO	200	127.0.0.1	-	_defaultVHost_	live	_definst_	0.044	[any]	1935	rtmp://localhost:1935/live	127.0.0.1	rtmp	unknown	WIN 13,0,0,182	906119770	3351	3073	-	-	-	-	-	-	-	-	-	-	-	-	-	rtmp://localhost:1935/live	-
    2016-02-28	15:31:19	EET	create	stream	INFO	200	-	-	_defaultVHost_	live	_definst_	0.001	[any]	1935	rtmp://localhost:1935/live	127.0.0.1	rtmp	unknown	WIN 13,0,0,182	906119770	3405	3413	1	0	0	0	-	-	-	-	-	-	rtmp://localhost:1935/live	rtmp://localhost:1935/live	-	rtmp://localhost:1935/live	-
    2016-02-28	15:31:19	EET	destroy	stream	INFO	200	-	-	_defaultVHost_	live	_definst_	0.032	[any]	1935	rtmp://localhost:1935/live	127.0.0.1	rtmp	unknown	WIN 13,0,0,182	906119770	3533	3645	1	0	86	0	-	-	-	-	-	-	rtmp://localhost:1935/live	rtmp://localhost:1935/live	-	rtmp://localhost:1935/live	-
    2016-02-28	15:31:19	EET	disconnect	session	INFO	200	906119770	-	_defaultVHost_	live	_definst_	4.535	[any]	1935	rtmp://localhost:1935/live	127.0.0.1	rtmp	unknown	WIN 13,0,0,182	906119770	3533	3645	-	-	-	-	-	-	-	-	-	-	-	-	-	rtmp://localhost:1935/live	-
    pls help me

  2. #2

    Default

    Hello.

    This forum thread should help you resolve this issue:
    ERROR: Client is not in list of valid encoders.

    Regards,

    Salvadore

  3. #3
    Join Date
    Oct 2011
    Posts
    18

    Default

    Hi

    It did not work

    my device log
    2016-03-02 11:36:33 EET comment server INFO 200 - MediaCasterStreamValidator.init[live/_definst_]: Started - - - 1996.643 - - - - - - - - - - - - - - - - - - - - - - - - -
    2016-03-02 11:36:33 EET comment server INFO 200 - ModuleCoreSecurity.onAppStart[live/_definst_]: Publish: AllowedEncoders: securityPublishValidEncoders:Wirecast/|FME/|FMLE/|Wowza GoCoder*|Lavf/|UA Teradek/|KulaByte/|VidBlaster/|XSplit/|AND - - - 1996.656 - - - - - - - - - - - - - - - - - - - - - - - - -
    2016-03-02 11:36:33 EET comment server INFO 200 - ModuleCoreSecurity.onAppStart[live/_definst_]: Publish: block duplicate stream names : false - - - 1996.657 - - - - - - - - - - - - - - - - - - - - - - - - -
    2016-03-02 11:36:33 EET comment server INFO 200 - ModuleCoreSecurity.onAppStart[live/_definst_]: Publish: RTMP Authorization: password file:C:\Program Files (x86)\Wowza Media Systems\Wowza Streaming Engine 4.4.0\conf\publish.password - - - 1996.657 - - - - - - - - - - - - - - - - - - - - - - - - -
    2016-03-02 11:36:33 EET comment server INFO 200 - ModuleCoreSecurity.onAppStart[live/_definst_]: Play: SecureConnection: securityPlayRequireSecureConnection:false - - - 1996.657 - - - - - - - - - - - - - - - - - - - - - - - - -
    2016-03-02 11:36:33 EET comment server INFO 200 - ModuleCoreSecurity.onAppStart[live/_definst_]: Play: securitySecureTokenVersion property is missing, using SecureToken Version 1, play security enabled for RTMP only - - - 1996.658 - - - - - - - - - - - - - - - - - - - - - - - - -
    2016-03-02 11:36:33 EET app-start application INFO 200 _definst_ live/_definst_ - - - 1996.659 - - - - - - - - - - - - - - - - - - - - - - - - -
    2016-03-02 11:36:33 EET connect-pending session INFO 100 192.168.1.35 - _defaultVHost_ live _definst_ 0.047 [any] 1935 rtmp://192.168.1.33:1935/live 192.168.1.35 rtmp app:/encoder.swf AND 13,0,0,182 17204994 3372 3073 - - - - - - - - - - - - - rtmp://192.168.1.33:1935/live -
    2016-03-02 11:36:33 EET connect session INFO 401 192.168.1.35 - _defaultVHost_ live _definst_ 0.048 [any] 1935 rtmp://192.168.1.33:1935/live 192.168.1.35 rtmp app:/encoder.swf AND 13,0,0,182 17204994 3372 3073 - - - - - - - - - - - - - rtmp://192.168.1.33:1935/live -
    2016-03-02 11:36:34 EET disconnect session INFO 200 17204994 - _defaultVHost_ live _definst_ 0.06 [any] 1935 rtmp://192.168.1.33:1935/live 192.168.1.35 rtmp app:/encoder.swf AND 13,0,0,182 17204994 3388 3337 - - - - - - - - - - - - - rtmp://192.168.1.33:1935/live -
    device name AND 13,0,0,182 for Adobe Air Android
    add AND* in flash version string but It did not work

  4. #4
    Join Date
    Jan 2016
    Posts
    81

    Default

    Hello,

    I would suggest that you take a look at the following this articles How-to-do-file-based-authentication-with-RTMP-client-and-credentials-in-querystring-of-the-RTMP-URL-(ModuleOnConnectAuthenticate2)

    How-to-do-file-based-authentication-with-RTMP-client-with-credentials-passed-as-parameters-of-NetConnection-connect-(ModuleOnConnectAuthenticate)

    You can then use query parameters as part of the connection string - something like netconnection.connect("rtmp://[wowza-address]/yourApp",username,password);

    Andy_E

Similar Threads

  1. Live mp4 recording via flash as3
    By poisondna in forum General Forum
    Replies: 3
    Last Post: 03-29-2013, 06:42 AM
  2. a call from my Module to Flash AS3 is NOT working while publishing
    By haimke in forum Server-side Modules and Code Samples Discussion
    Replies: 5
    Last Post: 08-28-2012, 11:22 AM
  3. MediaCache does not work http URL ( Item does not exist )
    By huge123 in forum Server-side Modules and Code Samples Discussion
    Replies: 3
    Last Post: 12-19-2011, 05:43 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
  •