Hi
I am writing live encoder with adobe air but Require password authentication does not work
my as3 server connect CODE :
[PHP] 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);[/PHP]
net stream code :
[PHP] 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;[/PHP]
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