Wowza Community

Session disconnect notification


I am using basic Video chat example of Wowza. When the connection is made, from Actionscript, I can notify server that the user is actually online.

var myLoader:URLLoader = new URLLoader()

myLoader.dataFormat = URLLoaderDataFormat.TEXT;

myLoader.load(new URLRequest(url))

myLoader.addEventListener(Event.COMPLETE, onLoad)

function onLoad(ev:Event){

trace (;



I want to keep track when user go offline. So How can I notify server when the session Disconnect or person close the window of that flash?


Simply: I am looking for a way to check if session is there or not using php

Take a look at IMediaStreamActionNotify3:

This is the best interface for Flash RTMP client. You won’t need PHP or HTTPProvider. You can send info to all clients with IApplicationInstance.broadcastMsg, or to one client with


There is an example Flash VideoChat in the examples that ship with Wowza. It is very simple. It is a client app, you upload it to your web server.


The client app goes on your web server.

If there is a Wowza module involved you need the Wowza IDE to build and compile .jar files, which are placed in the Wowza /lib folder.

Here is the IDE guide


It is the videochat.fla file in the example. You need Flash CS to modify. If you prefer Flash Builder, there is a Flex version here.


There is not a .jar file with the basic example.


Seems to me that it would be much simpler to have your Wowza application call out to your PHP application when users come and go.

In your Wowza module, you can use java’s httpurlconnection to make calls to your PHP service. You could do this after you process the onConnect / onDisconnect events

Sorry for my ignorance but I am still not sure how to do it.

When we user make a connection, there is a connection id. I want to check from php if a user with that connection id is still connected to the wowza server.

is there any way to do that?

or may be a http link to list all the active connection? this can also help me.

otherwise just let me know how exactly i can use the link you sent me.

Thanks for your response. Appreciate that!!!

Another quick question:

I am using a build in example of wowza video chat. WHERE exactly I can see the source code of that application so I can make changes in that? May be I can make some changes on the other side to achieve what I want.

I am good with java. I can do that but where I can find the video chat application on wowza? How can I re upload that application after making changes

Where exactly I will upload on the server? I am unable to find the java file to make changes. Please guide me how can I find that JAVA file where I can keep track of sessions.



From where I can get the source code of Video chat application of WOWZA?

I have already made changes to the videochat.fla file. when I make a connection to wowza, i update my server that a user just got connected. Where is the other side where I can update when the connection is lost? where is the java file located (jar file) which manage this connection?