Interface ISubtrackPoller


public interface ISubtrackPoller
  • Method Details

    • register

      void register(String mainTrackId, ISubtrackPoller.SubtrackListener listener)
    • notifySubtrackListeners

      void notifySubtrackListeners(String mainTrackId, List<Broadcast> subtracks)
    • notifyNewSubTrack

      void notifyNewSubTrack(String mainTrackId, String role, String subTrackStreamId)
    • unRegister

      void unRegister(String mainTrackId, ISubtrackPoller.SubtrackListener subtrackPollerListener)
    • hasListener

      boolean hasListener(String mainTrackId)
      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

      void notifySubTrackRemoved(String mainTrackId, String role, String streamId)
      This method is used to notify the listeners that a subtrack has been removed
      Parameters:
      mainTrackId - the streamId of the main track
      role - the role of the subtrack
      streamId - the streamId of the subtrack