# Wowza/Flex AV Chat example

**URL:** <https://community.wowza.com/t/wowza-flex-av-chat-example/234>\
**Category:** Wowza Developer Dojo\
**Created:** [August 15, 2008, 9:10pm UTC](https://community.wowza.com/t/wowza-flex-av-chat-example/234 "2008-08-15T21:10:32Z")\
**Posts on this page:** 20\
**Page:** 4

<div class="post-metadata">

**Author:** ![paolo\_mazza](https://avatars.discourse-cdn.com/v4/letter/p/e47c2d/32.png) [@paolo\_mazza](https://community.wowza.com/u/paolo_mazza)\
**Post date:** [January 23, 2014, 5:28pm UTC](https://community.wowza.com/t/wowza-flex-av-chat-example/234/61 "2014-01-23T17:28:41Z")

</div>

I need to set up a videochat in my web site. I wonder if there is a new version of this piece of software and if it is possible to pass some values (ie server address and name of the users) to this Flex App.

All the best

Paolo Mazza

---

<div class="post-metadata">

**Author:** ![filippo\_sun](https://avatars.discourse-cdn.com/v4/letter/f/71e660/32.png) [@filippo\_sun](https://community.wowza.com/u/filippo_sun)\
**Post date:** [July 12, 2009, 6:36pm UTC](https://community.wowza.com/t/wowza-flex-av-chat-example/234/62 "2009-07-12T18:36:19Z")

</div>

Hello Richard,

I have a question,where can I set all files of your project’s folder “wms-src” in the wowza server?

---

<div class="post-metadata">

**Author:** ![filippo\_sun](https://avatars.discourse-cdn.com/v4/letter/f/71e660/32.png) [@filippo\_sun](https://community.wowza.com/u/filippo_sun)\
**Post date:** [July 13, 2009, 8:03pm UTC](https://community.wowza.com/t/wowza-flex-av-chat-example/234/63 "2009-07-13T20:03:41Z")

</div>

Hi Richard,

How to configure the file of conf/application.xml?

Sun

---

<div class="post-metadata">

**Author:** ![Jon\_Spadle](https://avatars.discourse-cdn.com/v4/letter/j/13edae/32.png) [@Jon\_Spadle](https://community.wowza.com/u/Jon_Spadle)\
**Post date:** [March 21, 2011, 8:38am UTC](https://community.wowza.com/t/wowza-flex-av-chat-example/234/64 "2011-03-21T08:38:13Z")

</div>

Hi,

first off: I’ve tried out the avchat and it works like a charm – well done! Now that I set out to edit a few things, I stumbled across the TEA.as error as well. The solution given above

> The TEA.as file is missing, sorry about that. You can grab it from the Flex SimpleVideoStreaming example.
> 
> examples\SimpleVideoStreaming\clientFlex\src\com\meychi\ascrypt\TEA.as
> 
> Create this folder structure below the src folder of you Flex project:
> 
> com\meychi\ascrypt\
> 
> And copy the TEA.as file to there.
> 
> Rchard

does not work for me – I followed the instructions, but get an error: a file in the source path must have the same package structure “com.meychi.ascrypt” as the package defined by “com.wowza.encryption.as3”. I am using flash builder 4. any hints?

cheers, jon

---

<div class="post-metadata">

**Author:** ![xxxxx\_xxxx](https://avatars.discourse-cdn.com/v4/letter/x/8baadc/32.png) [@xxxxx\_xxxx](https://community.wowza.com/u/xxxxx_xxxx)\
**Post date:** [April 21, 2011, 6:50am UTC](https://community.wowza.com/t/wowza-flex-av-chat-example/234/65 "2011-04-21T06:50:41Z")

</div>

Hello I wanted to thank

You can have the fla to study it or ask too

---

<div class="post-metadata">

**Author:** ![xxxxx\_xxxx](https://avatars.discourse-cdn.com/v4/letter/x/8baadc/32.png) [@xxxxx\_xxxx](https://community.wowza.com/u/xxxxx_xxxx)\
**Post date:** [April 26, 2011, 4:21am UTC](https://community.wowza.com/t/wowza-flex-av-chat-example/234/66 "2011-04-26T04:21:59Z")

</div>

Sorry but I do not understand but if I wanted to change the file avchat.swf.

I installed Flash Builder and would like to add a test image, but I do not know how to do

---

<div class="post-metadata">

**Author:** ![xxxxx\_xxxx](https://avatars.discourse-cdn.com/v4/letter/x/8baadc/32.png) [@xxxxx\_xxxx](https://community.wowza.com/u/xxxxx_xxxx)\
**Post date:** [April 27, 2011, 6:35am UTC](https://community.wowza.com/t/wowza-flex-av-chat-example/234/67 "2011-04-27T06:35:57Z")

</div>

Sorry I downloaded flash builder premium 4 okay?

I can not figure out which version should I install Flex

I’m mad I can hardly understand you give me the link to download flex for windows?

Why flash fxp builder asks me the file?

Thank you and sorry

---

<div class="post-metadata">

**Author:** ![xxxxx\_xxxx](https://avatars.discourse-cdn.com/v4/letter/x/8baadc/32.png) [@xxxxx\_xxxx](https://community.wowza.com/u/xxxxx_xxxx)\
**Post date:** [May 5, 2011, 4:50am UTC](https://community.wowza.com/t/wowza-flex-av-chat-example/234/68 "2011-05-05T04:50:48Z")

</div>

Excuse me because she gives me this error when creating swf

C:\Programmi\Adobe\Adobe Flash Builder 4\sdks\3.5.0\bin\>mxmlc AVChat.mxml

Loading configuration file C:\Programmi\Adobe\Adobe Flash Builder 4\sdks\3.5.0\f

rameworks\flex-config.xml

C:\Programmi\Adobe\Adobe Flash Builder 4\sdks\3.5.0\bin\AVChatApp.as(170): col:

42 Error: Accesso alla proprietÓ non definita TEA.

nc.call(“secureTokenResponse”, null, TEA.decrypt

(infoObject.info.secureToken, sharedSecret));

^

C:\Programmi\Adobe\Adobe Flash Builder 4\sdks\3.5.0\bin\AVChatApp.as(3): col: 28

Error: Impossibile trovare la definizione com.meychi.ascrypt:TEA.

import com.meychi.ascrypt.TEA;

^

---

<div class="post-metadata">

**Author:** ![xxxxx\_xxxx](https://avatars.discourse-cdn.com/v4/letter/x/8baadc/32.png) [@xxxxx\_xxxx](https://community.wowza.com/u/xxxxx_xxxx)\
**Post date:** [May 12, 2011, 4:09am UTC](https://community.wowza.com/t/wowza-flex-av-chat-example/234/69 "2011-05-12T04:09:06Z")

</div>

Thanks it does work you are very kind 🙂

I ask because when I speak in the voice goes to two shots you can change values ​​by decreasing the video and increasing the voice

You can integrate text chat?

Thanks Thanks

---

<div class="post-metadata">

**Author:** ![xxxxx\_xxxx](https://avatars.discourse-cdn.com/v4/letter/x/8baadc/32.png) [@xxxxx\_xxxx](https://community.wowza.com/u/xxxxx_xxxx)\
**Post date:** [May 13, 2011, 6:36am UTC](https://community.wowza.com/t/wowza-flex-av-chat-example/234/70 "2011-05-13T06:36:51Z")

</div>

Hello, I am still me … help

Thanks for help but I can not enter txtchat avchat

You can do a single mxml file txtchat avchat with a single connection using publishname

Thank you for your kindness

---

<div class="post-metadata">

**Author:** ![xxxxx\_xxxx](https://avatars.discourse-cdn.com/v4/letter/x/8baadc/32.png) [@xxxxx\_xxxx](https://community.wowza.com/u/xxxxx_xxxx)\
**Post date:** [July 18, 2011, 6:32am UTC](https://community.wowza.com/t/wowza-flex-av-chat-example/234/71 "2011-07-18T06:32:26Z")

</div>

Hello I have a problem, I formatted the Wowza server I connect to a chat uesrs connected but do not see anyone even if I click on play

---

<div class="post-metadata">

**Author:** ![xxxxx\_xxxx](https://avatars.discourse-cdn.com/v4/letter/x/8baadc/32.png) [@xxxxx\_xxxx](https://community.wowza.com/u/xxxxx_xxxx)\
**Post date:** [July 19, 2011, 8:43am UTC](https://community.wowza.com/t/wowza-flex-av-chat-example/234/72 "2011-07-19T08:43:38Z")

</div>

Sorry but I copied the jar file I rebooted Wowza server, but I do not see the user connected Wowza servers.

because???

Thanks and sorry again

Configure logging: file:///C:/Program Files/Wowza Media Systems/Wowza Media Serv

er 2.2.3/conf/log4j.properties

INFO server server-start Wowza Media Server 2 Developer 2.2.3 build26454 -

INFO server comment - Serial number: XXXXX-XXXXX-XXXXX-XXXXX-GAVYA

INFO server comment - Maximum connections: 10

INFO server comment - Hardware Available Processors: 2

INFO server comment - Hardware Physical Memory: 377MB/1023MB

INFO server comment - Hardware Swap Space: 2105MB/2473MB

INFO server comment - Max File Descriptor Count: Unlimited

INFO server comment - OS Name: Windows 2003

INFO server comment - OS Version: 5.2

INFO server comment - OS Architecture: x86

INFO server comment - Java Name: Java HotSpot™ Client VM

INFO server comment - Java Vendor: Sun Microsystems Inc.

INFO server comment - Java Version: 1.6.0\_24

INFO server comment - Java VM Version: 19.1-b02

INFO server comment - Java Spec Version: 1.6

INFO server comment - Java Home: C:\Program Files\Java\jre6

INFO server comment - Java Max Heap Size: 742MB

INFO server comment - Java Architecture: 32

INFO server comment - Java Encoding[file.encoding]: Cp1252

INFO server comment - Java Args[0]: -Xmx768M

INFO server comment - Java Args[1]: -Dcom.sun.management.jmxremote=true

INFO server comment - Java Args[2]: -Dcom.wowza.wms.AppHome=C:\Program

INFO server comment - Java Args[3]: Files\Wowza

INFO server comment - Java Args[4]: Media

INFO server comment - Java Args[5]: Systems\Wowza

INFO server comment - Java Args[6]: Media

INFO server comment - Java Args[7]: Server

INFO server comment - Java Args[8]: 2.2.3

INFO server comment - Java Args[9]: -Dcom.wowza.wms.ConfigURL=

INFO server comment - Java Args[10]: -Dcom.wowza.wms.ConfigHome=C:\Program

INFO server comment - Java Args[11]: Files\Wowza

INFO server comment - Java Args[12]: Media

INFO server comment - Java Args[13]: Systems\Wowza

INFO server comment - Java Args[14]: Media

INFO server comment - Java Args[15]: Server

INFO server comment - Java Args[16]: 2.2.3

INFO server comment - Java GC[0]: Copy

INFO server comment - Java GC[1]: MarkSweepCompact

INFO server comment - Server threads[h/t]: 10/10

INFO server comment - CMDInterface now listening: [any]:8083

INFO vhost vhost-start _defaultVHost_ -

INFO server comment - _defaultVHost_ threads[h/t]:120/80 home:C:\Program Files\W

owza Media Systems\Wowza Media Server 2.2.3

INFO vhost comment _defaultVHost_ Bind attempt ([any]:1935:4)

INFO vhost comment _defaultVHost_ Bind successful ([any]:1935)

INFO vhost comment _defaultVHost_ Bind attempt ([any]:8086:1)

INFO vhost comment _defaultVHost_ Bind successful ([any]:8086)

INFO server comment - Wowza Media Server is started!

ERROR server comment - loadModFunctions: java.lang.ClassNotFoundException: com.w

owza.wms.example.module.AVChat

java.lang.ClassNotFoundException: com.wowza.wms.example.module.AVChat

at java.net.URLClassLoader$1.run(Unknown Source)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

at java.lang.Class.forName0(Native Method)

at java.lang.Class.forName(Unknown Source)

at com.wowza.wms.util.ModuleUtils.addModuleToApp(Unknown Source)

at com.wowza.wms.util.ApplicationUtils.loadModules(Unknown Source)

at com.wowza.wms.util.ApplicationUtils.loadConfigFile(Unknown Source)

at com.wowza.wms.application.ApplicationInstance.loadConfig(Unknown Sour

ce)

at com.wowza.wms.application.ApplicationInstance.(Unknown Source)

at com.wowza.wms.application.Application.getAppInstance(Unknown Source)

at com.wowza.wms.module.ModuleConnect.connect(Unknown Source)

at com.wowza.wms.request.RequestProcessFunctions.processFunctions(Unknow

n Source)

at com.wowza.wms.request.RTMPRequestAdapter.service(Unknown Source)

at com.wowza.wms.server.ServerHandler.serviceRequest(Unknown Source)

at com.wowza.wms.server.ServerHandler.handleMessageReceived(Unknown Sour

ce)

at com.wowza.wms.server.ServerHandler.messageReceived(Unknown Source)

at com.wowza.wms.server.ServerHandlerThreadedSession.run(Unknown Source)

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source

)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

INFO application app-start _definst_ avchat/_definst_

INFO session connect-pending 10.11.12.13 -

INFO session connect 10.11.12.13 -

INFO stream create - -

INFO stream publish sss -

INFO stream unpublish sss -

INFO stream destroy sss -

INFO session disconnect 1626413968 -

INFO application app-stop _definst_ avchat/_definst_

---

<div class="post-metadata">

**Author:** ![xxxxx\_xxxx](https://avatars.discourse-cdn.com/v4/letter/x/8baadc/32.png) [@xxxxx\_xxxx](https://community.wowza.com/u/xxxxx_xxxx)\
**Post date:** [July 28, 2011, 2:48am UTC](https://community.wowza.com/t/wowza-flex-av-chat-example/234/73 "2011-07-28T02:48:22Z")

</div>

Thanks I solved the problem but because I get this error?

And if I try to connect tells me connection closed

C:\flex\bin\>mxmlc Avchat.mxml

Loading configuration file C:\flex\frameworks\flex-config.xml

C:\flex\bin\com\wowza\encryptionAS3\TEA.as(57): col: 15 Warning: variable ‘p’ no

n contiene una dichiarazione di tipo.

for (var p = 0; p \< n; p++) {

^

C:\flex\bin\com\wowza\encryptionAS3\TEA.as(92): col: 15 Warning: variable ‘p’ no

n contiene una dichiarazione di tipo.

for (var p = n-1; p \>= 0; p–) {

^

C:\flex\bin\AVChat.swf (272030 bytes)

---

<div class="post-metadata">

**Author:** ![xxxxx\_xxxx](https://avatars.discourse-cdn.com/v4/letter/x/8baadc/32.png) [@xxxxx\_xxxx](https://community.wowza.com/u/xxxxx_xxxx)\
**Post date:** [August 1, 2011, 4:18am UTC](https://community.wowza.com/t/wowza-flex-av-chat-example/234/74 "2011-08-01T04:18:56Z")

</div>

Hello all ok because you have been kind

thanks

---

<div class="post-metadata">

**Author:** ![aymeric\_guilbert](https://avatars.discourse-cdn.com/v4/letter/a/b5e925/32.png) [@aymeric\_guilbert](https://community.wowza.com/u/aymeric_guilbert)\
**Post date:** [May 25, 2011, 4:56pm UTC](https://community.wowza.com/t/wowza-flex-av-chat-example/234/75 "2011-05-25T16:56:33Z")

</div>

Hey rrlanham, thanks for this nice example

I got it running and it s doing fine, however, it seems i can’t have a list of the current connected users.

It was written somewhere that it was supposed to display users name (instead of clientId) but to do so there would need to be something like a login box, no ? I guess i m missing something there !

---

<div class="post-metadata">

**Author:** ![Sergey\_Kovalevsky](https://avatars.discourse-cdn.com/v4/letter/s/b487fb/32.png) [@Sergey\_Kovalevsky](https://community.wowza.com/u/Sergey_Kovalevsky)\
**Post date:** [November 15, 2012, 2:08am UTC](https://community.wowza.com/t/wowza-flex-av-chat-example/234/76 "2012-11-15T02:08:47Z")

</div>

Publish this code on [github.com](http://github.com), please!

---

<div class="post-metadata">

**Author:** ![somnath\_dey](https://avatars.discourse-cdn.com/v4/letter/s/9f8e36/32.png) [@somnath\_dey](https://community.wowza.com/u/somnath_dey)\
**Post date:** [June 28, 2012, 2:22am UTC](https://community.wowza.com/t/wowza-flex-av-chat-example/234/77 "2012-06-28T02:22:47Z")

</div>

Hi Richard

After downloading your source set all files according your README.HTML in wowza server.suppose user1 pulish user1stream(streamname) and after this user2 publish user2stream(streamname).then in user1 side user1

show two stream user1stream and user2stream in listboxes.But video and microphone will play for user1stream not user2stream as user1 first publishes.

main problem is— stream which first publishes work for video and microphone.but other publishes stream not work for video and audio.

its very urgent…please help asap

---

<div class="post-metadata">

**Author:** ![somnath\_dey](https://avatars.discourse-cdn.com/v4/letter/s/9f8e36/32.png) [@somnath\_dey](https://community.wowza.com/u/somnath_dey)\
**Post date:** [June 28, 2012, 6:55am UTC](https://community.wowza.com/t/wowza-flex-av-chat-example/234/78 "2012-06-28T06:55:44Z")

</div>

> There is a .jar file included with this example. Make sure you have have copied that to your Wowza /lib folder, and added the Module to the Application.xml, and re-started Wowza. Then each user should see the stream the other has published.
> 
> Richard

Hi rechard

Thanks for reply.need your help.

we have done everythings which are mentioned you.but this problem means— video and audio play for one stream which published first but video and audio does not play for other stream

means the problem

Lets suppose with user1 and user2. If user1 1st publish the a steam " steam1" and user2 publish another steam is “steam2”. But now if user2 select the user1 steam “steam1” then he/she can able to see the user1 video/audio and his own video. But user1 who 1st the create the steam he never see the user2 video/audio he(user1) .

please help…

---

<div class="post-metadata">

**Author:** ![somnath\_dey](https://avatars.discourse-cdn.com/v4/letter/s/9f8e36/32.png) [@somnath\_dey](https://community.wowza.com/u/somnath_dey)\
**Post date:** [June 28, 2012, 7:08am UTC](https://community.wowza.com/t/wowza-flex-av-chat-example/234/79 "2012-06-28T07:08:09Z")

</div>

Hi Rechard

Please help us… please check [http://navsoft.co.in:8088/client/avchat.html](http://navsoft.co.in:8088/client/avchat.html)

you show the problem

we use rtmp address – rtmp://navsoft.co.in/avchat

is it wrong??

---

<div class="post-metadata">

**Author:** ![somnath\_dey](https://avatars.discourse-cdn.com/v4/letter/s/9f8e36/32.png) [@somnath\_dey](https://community.wowza.com/u/somnath_dey)\
**Post date:** [June 29, 2012, 5:02am UTC](https://community.wowza.com/t/wowza-flex-av-chat-example/234/80 "2012-06-29T05:02:35Z")

</div>

> It didn’t load for me. I’m not sure what the problem could be. It is an as-is example. If you want to extend it and do not know Flash/Flex (Actionscript 3) you will have to look for a Flash and Wowza developer. We have a list of independent consultants that you can get by sending request to support@wowza.com
> 
> Richard

Hi Richard

Thanks for reply.also we contact support@wowza.com through mail

but facing one problem when publish stream by 2nd user,3rd user…

after stopping wowza server if we run bin/startup.bat in command prompt.then for publishing stream by user1 no licensing issue but for publishing stream by user2,user3… having licensing issue

issues are for user2,user3… Licensing[avchat/_definst_/guest\_196964007]\*\*\* licence limit for publishing streams

publishing streams are stopped…

[Previous page](https://community.wowza.com/t/wowza-flex-av-chat-example/234.md?page=3)

[Next page](https://community.wowza.com/t/wowza-flex-av-chat-example/234.md?page=5)
