public class CallEvent
extends java.util.EventObject
Modifier and Type | Field and Description |
---|---|
static int |
CALL_ENDED
An event id value indicating that this event has been triggered as a
result of a call being ended (all its peers have left).
|
static int |
CALL_INITIATED
An event id value indicating that this event has been triggered as a
result of an outgoing call.
|
static int |
CALL_RECEIVED
An event id value indicating that this event has been triggered as a
result of an incoming call.
|
Constructor and Description |
---|
CallEvent(Call call,
int eventID)
Creates an event instance indicating that an incoming/outgoing call
has been created
|
CallEvent(Call call,
int eventID,
java.util.Map<org.jitsi.service.neomedia.MediaType,org.jitsi.service.neomedia.MediaDirection> mediaDirections)
Initializes a new CallEvent instance which is to represent an
event fired by a specific Call as its source.
|
Modifier and Type | Method and Description |
---|---|
CallConference |
getCallConference()
Returns the CallConference that triggered this event.
|
int |
getEventID()
Returns an event ID int indicating whether this event was triggered by
an outgoing or an incoming call.
|
java.util.Map<org.jitsi.service.neomedia.MediaType,org.jitsi.service.neomedia.MediaDirection> |
getMediaDirections()
Return the media directions map
|
java.util.List<org.jitsi.service.neomedia.MediaType> |
getMediaTypes()
Return the media types supported by this call, if information is
available.
|
Call |
getSourceCall()
Returns the Call that triggered this event.
|
boolean |
isDesktopStreaming()
Returns whether the current event is for video call and desktop streaming
one.
|
boolean |
isVideoCall()
Returns whether or not the call is a video call.
|
void |
setDesktopStreaming(boolean value)
Change the desktop streaming indication for this event.
|
java.lang.String |
toString()
Returns a String representation of this CallEvent.
|
public static final int CALL_ENDED
public static final int CALL_INITIATED
public static final int CALL_RECEIVED
public CallEvent(Call call, int eventID)
call
- the call that triggered this event.eventID
- determines whether this is an incoming or an outgoing
call.public CallEvent(Call call, int eventID, java.util.Map<org.jitsi.service.neomedia.MediaType,org.jitsi.service.neomedia.MediaDirection> mediaDirections)
call
- the Call which will fire the new instanceeventID
- the indicator which determines whether the new instance
will represent an event notifying that an incoming Call was
received, an outgoing Call was initiated, or a Call
endedmediaDirections
- public int getEventID()
public java.util.Map<org.jitsi.service.neomedia.MediaType,org.jitsi.service.neomedia.MediaDirection> getMediaDirections()
public java.util.List<org.jitsi.service.neomedia.MediaType> getMediaTypes()
public Call getSourceCall()
public CallConference getCallConference()
public boolean isVideoCall()
public boolean isDesktopStreaming()
public void setDesktopStreaming(boolean value)
value
- the new value.public java.lang.String toString()
toString
in class java.util.EventObject
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.