Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Session disconnect notification

  1. #1
    Join Date
    Nov 2012
    Posts
    8

    Default Session disconnect notification

    Hello,

    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 (ev.target.data);
    //output_stuff.text=ev.target.data;
    }


    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?

    Thanks

  2. #2
    Join Date
    Nov 2012
    Posts
    8

    Default

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

  3. #3
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    Take a look at IMediaStreamActionNotify3:

    http://www.wowza.com/forums/content....es-codec-info)

    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 IClient.call

    Richard

  4. #4
    Join Date
    Nov 2012
    Posts
    8

    Default

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

  5. #5
    Join Date
    Nov 2012
    Posts
    8

    Default

    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.

  6. Default

    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

  7. #7
    Join Date
    Nov 2012
    Posts
    8

    Default

    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

  8. #8
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    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.

    http://www.wowza.com/forums/content....ive-video-chat

    Richard

  9. #9
    Join Date
    Nov 2012
    Posts
    8

    Default

    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.

    Thanks
    Zee

  10. #10
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    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.
    http://www.wowza.com/media-server/developers#wowza-ide

    Here is the IDE guide
    http://www.wowza.com/uploads/develop...UsersGuide.pdf

    Richard

Page 1 of 2 12 LastLast

Similar Threads

  1. repeated session disconnect logs?
    By jHouseman in forum General Forum
    Replies: 3
    Last Post: 12-16-2014, 07:53 AM
  2. wowza session disconnect issue
    By rickyding in forum Live Streaming and Encoder Discussion
    Replies: 3
    Last Post: 09-20-2012, 12:31 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •