Interface SSRCFactory

  • All Known Implementing Classes:
    SSRCFactoryImpl

    public interface SSRCFactory
    Declares a factory of synchronization source (SSRC) identifiers.
    Author:
    Lyubomir Marinov
    • Method Detail

      • generateSSRC

        long generateSSRC​(String cause)
        Generates a new synchronization source (SSRC) identifier. If the returned synchronization source (SSRC) identifier is found to not be globally unique within the associated RTP session, the method will be invoked again.
        Parameters:
        cause - a String which specified the cause of the invocation of the method
        Returns:
        a randomly chosen int value which is to be utilized as a new synchronization source (SSRC) identifier should it be found to be globally unique within the associated RTP session or Long.MAX_VALUE if this SSRCFactory has cancelled the operation