FileDocCategorySizeDatePackage
NewParticipantEvent.javaAPI DocJMF 2.1.1e789Mon May 12 12:20:40 BST 2003javax.media.rtp.event

NewParticipantEvent.java

/*
 * @(#)NewParticipantEvent.java	1.6 02/08/21
 *
 * Copyright (c) 1996-2002 Sun Microsystems, Inc.  All rights reserved.
 */
package javax.media.rtp.event;

import javax.media.rtp.*;

/**Informs the RTP listener that an RTCP packet has just been received
 * from a heretofore unknown participant. Thus, an Participant
 * object has been created to  represent the new participant.
 */
public class NewParticipantEvent extends SessionEvent{
    /**
     * The new Participant object. 
     */
    private Participant participant;

    public NewParticipantEvent(SessionManager from,
			  Participant participant){
	super(from);
	this.participant = participant;
    }
    /**
     * The new Participant object. 
     */
    public Participant getParticipant(){
	return participant;
    }
}