Wowza Community

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] 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

Hello.

This forum thread should help you resolve this issue:

ERROR: Client is not in list of valid encoders.

Regards,

Salvadore

Hi

It did not work :frowning:

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

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