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

RemotePayloadChangeEvent.java

/*
 * @(#)RemotePayloadChangeEvent.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 a remote RTP sender has changed the
 * payload  type of a data stream.
 */
public class RemotePayloadChangeEvent extends ReceiveStreamEvent{
    /**
     * The old payload type.
     */
    private int oldpayload;
    /**
     * The new payload type
     */
    private int newpayload;
    public RemotePayloadChangeEvent (SessionManager from,
			       ReceiveStream recvStream,
			       int oldpayload,
			       int newpayload){
	super(from, recvStream, null);
	this.oldpayload = oldpayload;
	this.newpayload = newpayload;
    }

    /**
     * The new payload type
     */

    public int getNewPayload(){
	return newpayload;
    }
}