Search in sources :

Example 1 with NewParticipantEvent

use of javax.media.rtp.event.NewParticipantEvent in project Smack by igniterealtime.

the class AudioReceiver method update.

/**
 * JingleSessionListener.
 */
@Override
public synchronized void update(SessionEvent evt) {
    if (evt instanceof NewParticipantEvent) {
        Participant p = ((NewParticipantEvent) evt).getParticipant();
        LOGGER.fine("  - A new participant had just joined: " + p.getCNAME());
    }
}
Also used : Participant(javax.media.rtp.Participant) NewParticipantEvent(javax.media.rtp.event.NewParticipantEvent)

Example 2 with NewParticipantEvent

use of javax.media.rtp.event.NewParticipantEvent in project Spark by igniterealtime.

the class VideoReceiver method update.

/**
 * JingleSessionListener.
 */
public synchronized void update(SessionEvent evt) {
    if (evt instanceof NewParticipantEvent) {
        Participant p = ((NewParticipantEvent) evt).getParticipant();
        System.err.println("  - A new participant had just joined: " + p.getCNAME());
    }
}
Also used : Participant(javax.media.rtp.Participant) NewParticipantEvent(javax.media.rtp.event.NewParticipantEvent)

Aggregations

Participant (javax.media.rtp.Participant)2 NewParticipantEvent (javax.media.rtp.event.NewParticipantEvent)2