# AS3 live encoder does not work

**URL:** <https://community.wowza.com/t/as3-live-encoder-does-not-work/37445>\
**Category:** Wowza Streaming Engine\
**Created:** [February 28, 2016, 5:41am UTC](https://community.wowza.com/t/as3-live-encoder-does-not-work/37445 "2016-02-28T05:41:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![burak\_guder](https://avatars.discourse-cdn.com/v4/letter/b/e9a140/32.png) [@burak\_guder](https://community.wowza.com/u/burak_guder)\
**Post date:** [February 28, 2016, 5:41am UTC](https://community.wowza.com/t/as3-live-encoder-does-not-work/37445/1 "2016-02-28T05:41:45Z")

</div>

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](https://nc.addEventListener)(NetStatusEvent.NET\_STATUS, ncOnStatus);

[//connect.connectButton.label](https://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](https://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](https://starttext.text) = “DURDUR”;

[//doPublish.label](https://doPublish.label) = ‘Stop’;

[//doSubscribe.enabled](https://doSubscribe.enabled) = true;

publishingyn = false;[/PHP]

FLASH ERROR

```auto
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

```auto
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

---

<div class="post-metadata">

**Author:** ![sal\_jefferson](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@sal\_jefferson](https://community.wowza.com/u/sal_jefferson)\
**Post date:** [February 29, 2016, 7:24am UTC](https://community.wowza.com/t/as3-live-encoder-does-not-work/37445/2 "2016-02-29T07:24:05Z")

</div>

Hello.

This forum thread should help you resolve this issue:

[ERROR: Client is not in list of valid encoders.](http://community.wowza.com/t/-/43708)

Regards,

Salvadore

---

<div class="post-metadata">

**Author:** ![burak\_guder](https://avatars.discourse-cdn.com/v4/letter/b/e9a140/32.png) [@burak\_guder](https://community.wowza.com/u/burak_guder)\
**Post date:** [March 2, 2016, 1:44am UTC](https://community.wowza.com/t/as3-live-encoder-does-not-work/37445/3 "2016-03-02T01:44:46Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Andy\_Engberson](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/andy_engberson/32/392_2.png) [@Andy\_Engberson](https://community.wowza.com/u/Andy_Engberson)\
**Post date:** [April 18, 2016, 12:37am UTC](https://community.wowza.com/t/as3-live-encoder-does-not-work/37445/4 "2016-04-18T00:37:36Z")

</div>

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)](https://www.wowza.com/docs/how-to-do-file-based-rtmp-authentication-with-url-query-strings-onconnectauthenticate2%28ModuleOnConnectAuthenticate2%29)

[How-to-do-file-based-authentication-with-RTMP-client-with-credentials-passed-as-parameters-of-NetConnection-connect-(ModuleOnConnectAuthenticate)](https://www.wowza.com/docs/how-to-do-file-based-rtmp-authentication-with-netconnection-connect-onconnectauthenticate%28ModuleOnConnectAuthenticate%29)

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

Andy\_E
