Package org.jitsi.impl.neomedia
Class SSRCFactoryImpl
- java.lang.Object
-
- org.jitsi.impl.neomedia.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 Summary
Constructors Constructor Description SSRCFactoryImpl(long initialLocalSSRC)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgenerateSSRC(String cause)Generates a new synchronization source (SSRC) identifier.
-
-
-
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:
generateSSRCin interfaceSSRCFactory- 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
-
-