Package tigase.meet
Class AbstractParticipation<P extends AbstractParticipation<P,M>,M extends AbstractMeet<P>>
java.lang.Object
tigase.meet.AbstractParticipation<P,M>
- All Implemented Interfaces:
LocalPublisher.Listener,LocalSubscriber.Listener
- Direct Known Subclasses:
AbstractParticipationWithSession,ParticipationWithListener
public abstract class AbstractParticipation<P extends AbstractParticipation<P,M>,M extends AbstractMeet<P>>
extends Object
implements LocalPublisher.Listener, LocalSubscriber.Listener
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAbstractParticipation(M meet, LocalPublisher localPublisher, LocalSubscriber localSubscriber) Constructor of the class which stores publisher and subscriber. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddedPublishers(Collection<Publisher> publishers) getMeet()voidremovedPublishers(long publisherId) sendPublisherCandidate(JanusPlugin.Candidate candidate) sendPublisherSDP(JSEP offer) sendSubscriberCandidate(JanusPlugin.Candidate candidate) sendSubscriberSDP(JSEP answer) voidtoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface tigase.meet.janus.videoroom.LocalPublisher.Listener
receivedPublisherCandidate, receivedPublisherSDPMethods inherited from interface tigase.meet.janus.videoroom.LocalSubscriber.Listener
receivedSubscriberCandidate, receivedSubscriberSDP
-
Field Details
-
publisher
-
subscriber
-
-
Constructor Details
-
AbstractParticipation
public AbstractParticipation(M meet, LocalPublisher localPublisher, LocalSubscriber localSubscriber) Constructor of the class which stores publisher and subscriber. Remember to call `setListeners()` method to initialize listeners.- Parameters:
meet-localPublisher-localSubscriber-
-
-
Method Details
-
getMeet
-
setListeners
public void setListeners() -
addedPublishers
- Specified by:
addedPublishersin interfaceLocalPublisher.Listener
-
removedPublishers
public void removedPublishers(long publisherId) - Specified by:
removedPublishersin interfaceLocalPublisher.Listener
-
sendPublisherSDP
-
sendPublisherCandidate
-
sendSubscriberCandidate
-
sendSubscriberSDP
-
leave
-
toString
-