Maintains a ledger of connection state transitions with timestamps. More...
Instance Methods | |
(NSString *) | - description |
Provides a string representation of all recorded state transitions. More... | |
(instancetype) | - initWithConnectionId:client:connectionType:clientId:mediaProtocol: |
Initializes a new instance of the ConnectionStateLedger class. More... | |
(void) | - recordAnswerWithState:sent:renegotiation: |
Records an offer. More... | |
(void) | - recordConnectionState: |
Records a new connection state transition with current timestamp. More... | |
(void) | - recordErrorWithState:error: |
Records an error. More... | |
(void) | - recordMediaIntentWithState:sent: |
Records a media intent with current timestamp. More... | |
(void) | - recordOfferWithState:sent:renegotiation: |
Records an offer. More... | |
Class Methods | |
(FMLiveSwitchConnectionStateLedger *) | + connectionStateLedgerWithConnectionId:client:connectionType:clientId:mediaProtocol: |
Initializes a new instance of the ConnectionStateLedger class. More... | |
Maintains a ledger of connection state transitions with timestamps.
Tracks the history of state changes for a specific connection.
+ (FMLiveSwitchConnectionStateLedger*) connectionStateLedgerWithConnectionId: | (NSString *) | connectionId | |
client: | (bool) | client | |
connectionType: | (NSString *) | connectionType | |
clientId: | (NSString *) | clientId | |
mediaProtocol: | (FMLiveSwitchMediaProtocol) | mediaProtocol | |
Initializes a new instance of the ConnectionStateLedger class.
connectionId | The unique identifier for the connection to track. |
client | Indicates whether this ledger is for the client rather than for a server. |
connectionType | Indicates the connection type. |
clientId | The unique identifier for the client. |
mediaProtocol | The mediaprotocol of this connection. |
- (NSString*) description |
Provides a string representation of all recorded state transitions.
- (instancetype) initWithConnectionId: | (NSString *) | connectionId | |
client: | (bool) | client | |
connectionType: | (NSString *) | connectionType | |
clientId: | (NSString *) | clientId | |
mediaProtocol: | (FMLiveSwitchMediaProtocol) | mediaProtocol | |
Initializes a new instance of the ConnectionStateLedger class.
connectionId | The unique identifier for the connection to track. |
client | Indicates whether this ledger is for the client rather than for a server. |
connectionType | Indicates the connection type. |
clientId | The unique identifier for the client. |
mediaProtocol | The mediaprotocol of this connection. |
- (void) recordAnswerWithState: | (FMLiveSwitchConnectionState) | state | |
sent: | (bool) | sent | |
renegotiation: | (bool) | renegotiation | |
Records an offer.
- (void) recordConnectionState: | (FMLiveSwitchConnectionState) | state |
Records a new connection state transition with current timestamp.
state | The new connection state to record. |
- (void) recordErrorWithState: | (FMLiveSwitchConnectionState) | state | |
error: | (NSString *) | error | |
Records an error.
- (void) recordMediaIntentWithState: | (FMLiveSwitchConnectionState) | state | |
sent: | (bool) | sent | |
Records a media intent with current timestamp.
- (void) recordOfferWithState: | (FMLiveSwitchConnectionState) | state | |
sent: | (bool) | sent | |
renegotiation: | (bool) | renegotiation | |
Records an offer.