Class RTPSessions


  • public class RTPSessions
    extends Object

    RTPSessions: collection of RTP sessions

    • Constructor Detail

      • RTPSessions

        public RTPSessions​(IVHost vhost)
        Constructor
        Parameters:
        vhost - vhost
    • Method Detail

      • getNextSessionId

        public String getNextSessionId()
        Get next RTP session id for new session
        Returns:
        RTP session id
      • getSessionIds

        public java.util.List<String> getSessionIds()
        Get list of current RTP session ids
        Returns:
        list of current RTP session ids
      • releaseSessionId

        public void releaseSessionId​(String sessionIdStr)
        Release an RTP session id
        Parameters:
        sessionIdStr - RTP session id
      • getSession

        public RTPSession getSession​(String sessionId)
        Get RTP session by session id
        Parameters:
        sessionId - session id
        Returns:
        RTP session
      • removeSession

        public RTPSession removeSession​(String sessionId)
        Remove RTP session by session id
        Parameters:
        sessionId - session id
        Returns:
        RTP session if removed
      • removeSession

        public RTPSession removeSession​(RTPSession session)
        Remove RTP session by object
        Parameters:
        session - RTP session
        Returns:
        RTP session if removed
      • addSession

        public RTPSession addSession​(RTPSession session)
        Add RTP session
        Parameters:
        session - RTP session
        Returns:
        RTP session added
      • getVHost

        public IVHost getVHost()
        Get vhost
        Returns:
        vhost
      • addSessionListener

        public void addSessionListener​(IRTPSessionNotify listener)
        Add a RTP session listener
        Parameters:
        listener - RTP session listener
      • removeSessionListener

        public void removeSessionListener​(IRTPSessionNotify listener)
        Remove an RTP session listener
        Parameters:
        listener - RTP session listener
      • notifySessionCreate

        public void notifySessionCreate​(IApplicationInstance appInstance,
                                        RTPSession rtpSession)
        Notify session create
        Parameters:
        appInstance - application instance
        rtpSession - RTP session
      • notifySessionDestroy

        public void notifySessionDestroy​(IApplicationInstance appInstance,
                                         RTPSession rtpSession)
        Notify session destroy
        Parameters:
        appInstance - application instance
        rtpSession - RTP session
      • notifySessionCreate

        public void notifySessionCreate​(RTPSession rtpSession)
        Notify session create
        Parameters:
        rtpSession - RTP session
      • notifySessionDestroy

        public void notifySessionDestroy​(RTPSession rtpSession)
        Notify session destroy
        Parameters:
        rtpSession - RTP session