public class OperationSetVideoBridgeImpl extends java.lang.Object implements OperationSetVideoBridge, org.jivesoftware.smack.filter.PacketFilter, org.jivesoftware.smack.PacketListener, RegistrationStateChangeListener
IS_VIDEO_BRIDGE_DISABLED
Constructor and Description |
---|
OperationSetVideoBridgeImpl(ProtocolProviderServiceJabberImpl protocolProvider)
Creates an instance of OperationSetVideoBridgeImpl by
specifying the parent ProtocolProviderService announcing this
operation set.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(org.jivesoftware.smack.packet.Packet packet)
Implements
PacketFilter . |
Call |
createConfCall(java.lang.String[] callees)
Creates a conference call with the specified callees as call peers via a
video bridge provided by the parent Jabber provider.
|
CallPeer |
inviteCalleeToCall(java.lang.String uri,
Call call)
Invites the callee represented by the specified uri to an already
existing call using a video bridge provided by the parent Jabber provider.
|
boolean |
isActive()
Indicates if there's an active video bridge available at this moment.
|
void |
processPacket(org.jivesoftware.smack.packet.Packet packet)
Implements
PacketListener . |
void |
registrationStateChanged(RegistrationStateChangeEvent ev)
The method is called by a ProtocolProviderService implementation
whenever a change in its registration state has occurred.
|
public OperationSetVideoBridgeImpl(ProtocolProviderServiceJabberImpl protocolProvider)
protocolProvider
- the parent Jabber protocol providerpublic boolean accept(org.jivesoftware.smack.packet.Packet packet)
PacketFilter
. Determines whether this instance is
interested in a specific Packet
.
OperationSetVideoBridgeImpl returns true if the
specified packet is a ColibriConferenceIQ
; otherwise,
false.accept
in interface org.jivesoftware.smack.filter.PacketFilter
packet
- the Packet to be determined whether this instance
is interested in itpublic Call createConfCall(java.lang.String[] callees) throws OperationFailedException, OperationNotSupportedException
createConfCall
in interface OperationSetVideoBridge
callees
- the list of addresses that we should callOperationFailedException
- if establishing the conference call
failsOperationNotSupportedException
- if the provider does not have any
conferencing features.public CallPeer inviteCalleeToCall(java.lang.String uri, Call call) throws OperationFailedException, OperationNotSupportedException
inviteCalleeToCall
in interface OperationSetVideoBridge
uri
- the callee to invite to an existing conf call.call
- the call that we should invite the callee to.OperationFailedException
- if inviting the specified callee to the
specified call failsOperationNotSupportedException
- if allowing additional callees to
a pre-established call is not supported.public boolean isActive()
isActive
in interface OperationSetVideoBridge
public void processPacket(org.jivesoftware.smack.packet.Packet packet)
PacketListener
. Notifies this instance that a specific
Packet
(which this instance has already expressed interest into
by returning true from accept(Packet)
) has been
received.processPacket
in interface org.jivesoftware.smack.PacketListener
packet
- the Packet which has been received and which this
instance is given a chance to processpublic void registrationStateChanged(RegistrationStateChangeEvent ev)
RegistrationStateChangeListener
. Notifies this
instance that there has been a change in the RegistrationState
of protocolProvider
. Subscribes this instance to
ColibriConferenceIQ
s as soon as protocolProvider is
registered and unsubscribes it as soon as protocolProvider is
unregistered.registrationStateChanged
in interface RegistrationStateChangeListener
ev
- a RegistrationStateChangeEvent which describes the
registration state change.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.