Package io.antmedia.track
Interface ISubtrackPoller
public interface ISubtrackPoller
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbooleanhasListener(String mainTrackId) This method is used to check if a listener is registered for a given streamIdvoidnotifyNewSubTrack(String mainTrackId, String role, String subTrackStreamId) voidnotifySubtrackListeners(String mainTrackId, List<Broadcast> subtracks) voidnotifySubTrackRemoved(String mainTrackId, String role, String streamId) This method is used to notify the listeners that a subtrack has been removedvoidregister(String mainTrackId, ISubtrackPoller.SubtrackListener listener) voidunRegister(String mainTrackId, ISubtrackPoller.SubtrackListener subtrackPollerListener)
-
Method Details
-
register
-
notifySubtrackListeners
-
notifyNewSubTrack
-
unRegister
-
hasListener
This method is used to check if a listener is registered for a given streamId- Parameters:
mainTrackId- the streamId of the main track- Returns:
- true if there is a listener registered for the given streamId, false otherwise
-
notifySubTrackRemoved
This method is used to notify the listeners that a subtrack has been removed- Parameters:
mainTrackId- the streamId of the main trackrole- the role of the subtrackstreamId- the streamId of the subtrack
-