Class SSRCFactoryImpl

  • All Implemented Interfaces:
    SSRCFactory

    public class SSRCFactoryImpl
    extends Object
    implements SSRCFactory
    An SSRCFactory implementation which allows the first generated SSRC to be set by the user.
    Author:
    Lyubomir Marinov, Boris Grozev
    • Constructor Detail

      • SSRCFactoryImpl

        public SSRCFactoryImpl​(long initialLocalSSRC)
    • Method Detail

      • generateSSRC

        public 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.
        Specified by:
        generateSSRC in interface SSRCFactory
        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