FMLiveSwitchConnectionFactory Class Reference

Instance Methods

(FMLiveSwitchMcuConnection *) - createMcuConnectionWithSharedLock:applicationId:channelId:userId:deviceId:clientId:send:audioStream:videoStream:dataStream:mediaId:
 
(FMLiveSwitchMcuConnection *) - createMcuConnectionWithSharedLock:applicationId:channelId:userId:deviceId:clientId:sendBlock:audioStream:videoStream:dataStream:mediaId:
 
(FMLiveSwitchMessage *) - createMcuConnectionWithSharedLockAndApplicationIdAndChannelIdAndUserIdAndDeviceIdAndClientIdAndSendBlockAndAudioStreamAndVideoStreamAndDataStreamAndMediaId
 
(FMLiveSwitchPeerConnection *) - createPeerConnectionWithSharedLock:applicationId:channelId:userId:deviceId:clientId:send:peerConnectionOffer:audioStream:videoStream:dataStream:
 
(FMLiveSwitchPeerConnection *) - createPeerConnectionWithSharedLock:applicationId:channelId:userId:deviceId:clientId:send:remoteClientInfo:audioStream:videoStream:dataStream:
 
(FMLiveSwitchPeerConnection *) - createPeerConnectionWithSharedLock:applicationId:channelId:userId:deviceId:clientId:sendBlock:peerConnectionOffer:audioStream:videoStream:dataStream:
 
(FMLiveSwitchPeerConnection *) - createPeerConnectionWithSharedLock:applicationId:channelId:userId:deviceId:clientId:sendBlock:remoteClientInfo:audioStream:videoStream:dataStream:
 
(FMLiveSwitchMessage *) - createPeerConnectionWithSharedLockAndApplicationIdAndChannelIdAndUserIdAndDeviceIdAndClientIdAndSendBlockAndPeerConnectionOfferAndAudioStreamAndVideoStreamAndDataStream
 
(FMLiveSwitchMessage *) - createPeerConnectionWithSharedLockAndApplicationIdAndChannelIdAndUserIdAndDeviceIdAndClientIdAndSendBlockAndRemoteClientInfoAndAudioStreamAndVideoStreamAndDataStream
 
(FMLiveSwitchSfuDownstreamConnection *) - createSfuDownstreamConnectionWithSharedLock:applicationId:channelId:userId:deviceId:clientId:send:remoteConnectionInfo:audioStream:videoStream:dataStream:useWebSocketsForMedia:
 
(FMLiveSwitchSfuDownstreamConnection *) - createSfuDownstreamConnectionWithSharedLock:applicationId:channelId:userId:deviceId:clientId:send:remoteMediaId:audioStream:videoStream:dataStream:useWebSocketsForMedia:
 
(FMLiveSwitchSfuDownstreamConnection *) - createSfuDownstreamConnectionWithSharedLock:applicationId:channelId:userId:deviceId:clientId:sendBlock:remoteConnectionInfo:audioStream:videoStream:dataStream:useWebSocketsForMedia:
 
(FMLiveSwitchSfuDownstreamConnection *) - createSfuDownstreamConnectionWithSharedLock:applicationId:channelId:userId:deviceId:clientId:sendBlock:remoteMediaId:audioStream:videoStream:dataStream:useWebSocketsForMedia:
 
(FMLiveSwitchMessage *) - createSfuDownstreamConnectionWithSharedLockAndApplicationIdAndChannelIdAndUserIdAndDeviceIdAndClientIdAndSendBlockAndRemoteConnectionInfoAndAudioStreamAndVideoStreamAndDataStreamAndUseWebSocketsForMedia
 
(FMLiveSwitchMessage *) - createSfuDownstreamConnectionWithSharedLockAndApplicationIdAndChannelIdAndUserIdAndDeviceIdAndClientIdAndSendBlockAndRemoteMediaIdAndAudioStreamAndVideoStreamAndDataStreamAndUseWebSocketsForMedia
 
(FMLiveSwitchSfuUpstreamConnection *) - createSfuUpstreamConnectionWithSharedLock:applicationId:channelId:userId:deviceId:clientId:send:audioStream:videoStream:dataStream:mediaId:
 
(FMLiveSwitchSfuUpstreamConnection *) - createSfuUpstreamConnectionWithSharedLock:applicationId:channelId:userId:deviceId:clientId:send:audioStream:videoStream:dataStream:mediaId:useWebSocketsForMedia:
 
(FMLiveSwitchSfuUpstreamConnection *) - createSfuUpstreamConnectionWithSharedLock:applicationId:channelId:userId:deviceId:clientId:sendBlock:audioStream:videoStream:dataStream:mediaId:
 
(FMLiveSwitchSfuUpstreamConnection *) - createSfuUpstreamConnectionWithSharedLock:applicationId:channelId:userId:deviceId:clientId:sendBlock:audioStream:videoStream:dataStream:mediaId:useWebSocketsForMedia:
 
(FMLiveSwitchMessage *) - createSfuUpstreamConnectionWithSharedLockAndApplicationIdAndChannelIdAndUserIdAndDeviceIdAndClientIdAndSendBlockAndAudioStreamAndVideoStreamAndDataStreamAndMediaId
 
(FMLiveSwitchMessage *) - createSfuUpstreamConnectionWithSharedLockAndApplicationIdAndChannelIdAndUserIdAndDeviceIdAndClientIdAndSendBlockAndAudioStreamAndVideoStreamAndDataStreamAndMediaIdAndUseWebSocketsForMedia
 
(instancetype) - init
 

Class Methods

(FMLiveSwitchConnectionFactory *) + connectionFactory
 

Method Documentation

◆ connectionFactory

+ (FMLiveSwitchConnectionFactory*) connectionFactory

◆ createMcuConnectionWithSharedLock:applicationId:channelId:userId:deviceId:clientId:send:audioStream:videoStream:dataStream:mediaId:

- (FMLiveSwitchMcuConnection*) createMcuConnectionWithSharedLock: (id sharedLock
applicationId: (NSString *)  applicationId
channelId: (NSString *)  channelId
userId: (NSString *)  userId
deviceId: (NSString *)  deviceId
clientId: (NSString *)  clientId
send: (FMLiveSwitchFunction1< FMLiveSwitchMessage *, FMLiveSwitchFuture< FMLiveSwitchMessage * > * > *)  send
audioStream: (FMLiveSwitchAudioStream *)  audioStream
videoStream: (FMLiveSwitchVideoStream *)  videoStream
dataStream: (FMLiveSwitchDataStream *)  dataStream
mediaId: (NSString *)  mediaId 

◆ createMcuConnectionWithSharedLock:applicationId:channelId:userId:deviceId:clientId:sendBlock:audioStream:videoStream:dataStream:mediaId:

- (FMLiveSwitchMcuConnection*) createMcuConnectionWithSharedLock: (id sharedLock
applicationId: (NSString *)  applicationId
channelId: (NSString *)  channelId
userId: (NSString *)  userId
deviceId: (NSString *)  deviceId
clientId: (NSString *)  clientId
sendBlock: (FMLiveSwitchFuture< FMLiveSwitchMessage * > *(^)(FMLiveSwitchMessage *))  sendBlock
audioStream: (FMLiveSwitchAudioStream *)  audioStream
videoStream: (FMLiveSwitchVideoStream *)  videoStream
dataStream: (FMLiveSwitchDataStream *)  dataStream
mediaId: (NSString *)  mediaId 

◆ createMcuConnectionWithSharedLockAndApplicationIdAndChannelIdAndUserIdAndDeviceIdAndClientIdAndSendBlockAndAudioStreamAndVideoStreamAndDataStreamAndMediaId

- (FMLiveSwitchMessage*) createMcuConnectionWithSharedLockAndApplicationIdAndChannelIdAndUserIdAndDeviceIdAndClientIdAndSendBlockAndAudioStreamAndVideoStreamAndDataStreamAndMediaId

◆ createPeerConnectionWithSharedLock:applicationId:channelId:userId:deviceId:clientId:send:peerConnectionOffer:audioStream:videoStream:dataStream:

- (FMLiveSwitchPeerConnection*) createPeerConnectionWithSharedLock: (id sharedLock
applicationId: (NSString *)  applicationId
channelId: (NSString *)  channelId
userId: (NSString *)  userId
deviceId: (NSString *)  deviceId
clientId: (NSString *)  clientId
send: (FMLiveSwitchFunction1< FMLiveSwitchMessage *, FMLiveSwitchFuture< FMLiveSwitchMessage * > * > *)  send
peerConnectionOffer: (FMLiveSwitchPeerConnectionOffer *)  peerConnectionOffer
audioStream: (FMLiveSwitchAudioStream *)  audioStream
videoStream: (FMLiveSwitchVideoStream *)  videoStream
dataStream: (FMLiveSwitchDataStream *)  dataStream 

◆ createPeerConnectionWithSharedLock:applicationId:channelId:userId:deviceId:clientId:send:remoteClientInfo:audioStream:videoStream:dataStream:

- (FMLiveSwitchPeerConnection*) createPeerConnectionWithSharedLock: (id sharedLock
applicationId: (NSString *)  applicationId
channelId: (NSString *)  channelId
userId: (NSString *)  userId
deviceId: (NSString *)  deviceId
clientId: (NSString *)  clientId
send: (FMLiveSwitchFunction1< FMLiveSwitchMessage *, FMLiveSwitchFuture< FMLiveSwitchMessage * > * > *)  send
remoteClientInfo: (FMLiveSwitchClientInfo *)  remoteClientInfo
audioStream: (FMLiveSwitchAudioStream *)  audioStream
videoStream: (FMLiveSwitchVideoStream *)  videoStream
dataStream: (FMLiveSwitchDataStream *)  dataStream 

◆ createPeerConnectionWithSharedLock:applicationId:channelId:userId:deviceId:clientId:sendBlock:peerConnectionOffer:audioStream:videoStream:dataStream:

- (FMLiveSwitchPeerConnection*) createPeerConnectionWithSharedLock: (id sharedLock
applicationId: (NSString *)  applicationId
channelId: (NSString *)  channelId
userId: (NSString *)  userId
deviceId: (NSString *)  deviceId
clientId: (NSString *)  clientId
sendBlock: (FMLiveSwitchFuture< FMLiveSwitchMessage * > *(^)(FMLiveSwitchMessage *))  sendBlock
peerConnectionOffer: (FMLiveSwitchPeerConnectionOffer *)  peerConnectionOffer
audioStream: (FMLiveSwitchAudioStream *)  audioStream
videoStream: (FMLiveSwitchVideoStream *)  videoStream
dataStream: (FMLiveSwitchDataStream *)  dataStream 

◆ createPeerConnectionWithSharedLock:applicationId:channelId:userId:deviceId:clientId:sendBlock:remoteClientInfo:audioStream:videoStream:dataStream:

- (FMLiveSwitchPeerConnection*) createPeerConnectionWithSharedLock: (id sharedLock
applicationId: (NSString *)  applicationId
channelId: (NSString *)  channelId
userId: (NSString *)  userId
deviceId: (NSString *)  deviceId
clientId: (NSString *)  clientId
sendBlock: (FMLiveSwitchFuture< FMLiveSwitchMessage * > *(^)(FMLiveSwitchMessage *))  sendBlock
remoteClientInfo: (FMLiveSwitchClientInfo *)  remoteClientInfo
audioStream: (FMLiveSwitchAudioStream *)  audioStream
videoStream: (FMLiveSwitchVideoStream *)  videoStream
dataStream: (FMLiveSwitchDataStream *)  dataStream 

◆ createPeerConnectionWithSharedLockAndApplicationIdAndChannelIdAndUserIdAndDeviceIdAndClientIdAndSendBlockAndPeerConnectionOfferAndAudioStreamAndVideoStreamAndDataStream

- (FMLiveSwitchMessage*) createPeerConnectionWithSharedLockAndApplicationIdAndChannelIdAndUserIdAndDeviceIdAndClientIdAndSendBlockAndPeerConnectionOfferAndAudioStreamAndVideoStreamAndDataStream

◆ createPeerConnectionWithSharedLockAndApplicationIdAndChannelIdAndUserIdAndDeviceIdAndClientIdAndSendBlockAndRemoteClientInfoAndAudioStreamAndVideoStreamAndDataStream

- (FMLiveSwitchMessage*) createPeerConnectionWithSharedLockAndApplicationIdAndChannelIdAndUserIdAndDeviceIdAndClientIdAndSendBlockAndRemoteClientInfoAndAudioStreamAndVideoStreamAndDataStream

◆ createSfuDownstreamConnectionWithSharedLock:applicationId:channelId:userId:deviceId:clientId:send:remoteConnectionInfo:audioStream:videoStream:dataStream:useWebSocketsForMedia:

- (FMLiveSwitchSfuDownstreamConnection*) createSfuDownstreamConnectionWithSharedLock: (id sharedLock
applicationId: (NSString *)  applicationId
channelId: (NSString *)  channelId
userId: (NSString *)  userId
deviceId: (NSString *)  deviceId
clientId: (NSString *)  clientId
send: (FMLiveSwitchFunction1< FMLiveSwitchMessage *, FMLiveSwitchFuture< FMLiveSwitchMessage * > * > *)  send
remoteConnectionInfo: (FMLiveSwitchConnectionInfo *)  remoteConnectionInfo
audioStream: (FMLiveSwitchAudioStream *)  audioStream
videoStream: (FMLiveSwitchVideoStream *)  videoStream
dataStream: (FMLiveSwitchDataStream *)  dataStream
useWebSocketsForMedia: (bool)  useWebSocketsForMedia 

◆ createSfuDownstreamConnectionWithSharedLock:applicationId:channelId:userId:deviceId:clientId:send:remoteMediaId:audioStream:videoStream:dataStream:useWebSocketsForMedia:

- (FMLiveSwitchSfuDownstreamConnection*) createSfuDownstreamConnectionWithSharedLock: (id sharedLock
applicationId: (NSString *)  applicationId
channelId: (NSString *)  channelId
userId: (NSString *)  userId
deviceId: (NSString *)  deviceId
clientId: (NSString *)  clientId
send: (FMLiveSwitchFunction1< FMLiveSwitchMessage *, FMLiveSwitchFuture< FMLiveSwitchMessage * > * > *)  send
remoteMediaId: (NSString *)  remoteMediaId
audioStream: (FMLiveSwitchAudioStream *)  audioStream
videoStream: (FMLiveSwitchVideoStream *)  videoStream
dataStream: (FMLiveSwitchDataStream *)  dataStream
useWebSocketsForMedia: (bool)  useWebSocketsForMedia 

◆ createSfuDownstreamConnectionWithSharedLock:applicationId:channelId:userId:deviceId:clientId:sendBlock:remoteConnectionInfo:audioStream:videoStream:dataStream:useWebSocketsForMedia:

- (FMLiveSwitchSfuDownstreamConnection*) createSfuDownstreamConnectionWithSharedLock: (id sharedLock
applicationId: (NSString *)  applicationId
channelId: (NSString *)  channelId
userId: (NSString *)  userId
deviceId: (NSString *)  deviceId
clientId: (NSString *)  clientId
sendBlock: (FMLiveSwitchFuture< FMLiveSwitchMessage * > *(^)(FMLiveSwitchMessage *))  sendBlock
remoteConnectionInfo: (FMLiveSwitchConnectionInfo *)  remoteConnectionInfo
audioStream: (FMLiveSwitchAudioStream *)  audioStream
videoStream: (FMLiveSwitchVideoStream *)  videoStream
dataStream: (FMLiveSwitchDataStream *)  dataStream
useWebSocketsForMedia: (bool)  useWebSocketsForMedia 

◆ createSfuDownstreamConnectionWithSharedLock:applicationId:channelId:userId:deviceId:clientId:sendBlock:remoteMediaId:audioStream:videoStream:dataStream:useWebSocketsForMedia:

- (FMLiveSwitchSfuDownstreamConnection*) createSfuDownstreamConnectionWithSharedLock: (id sharedLock
applicationId: (NSString *)  applicationId
channelId: (NSString *)  channelId
userId: (NSString *)  userId
deviceId: (NSString *)  deviceId
clientId: (NSString *)  clientId
sendBlock: (FMLiveSwitchFuture< FMLiveSwitchMessage * > *(^)(FMLiveSwitchMessage *))  sendBlock
remoteMediaId: (NSString *)  remoteMediaId
audioStream: (FMLiveSwitchAudioStream *)  audioStream
videoStream: (FMLiveSwitchVideoStream *)  videoStream
dataStream: (FMLiveSwitchDataStream *)  dataStream
useWebSocketsForMedia: (bool)  useWebSocketsForMedia 

◆ createSfuDownstreamConnectionWithSharedLockAndApplicationIdAndChannelIdAndUserIdAndDeviceIdAndClientIdAndSendBlockAndRemoteConnectionInfoAndAudioStreamAndVideoStreamAndDataStreamAndUseWebSocketsForMedia

- (FMLiveSwitchMessage*) createSfuDownstreamConnectionWithSharedLockAndApplicationIdAndChannelIdAndUserIdAndDeviceIdAndClientIdAndSendBlockAndRemoteConnectionInfoAndAudioStreamAndVideoStreamAndDataStreamAndUseWebSocketsForMedia

◆ createSfuDownstreamConnectionWithSharedLockAndApplicationIdAndChannelIdAndUserIdAndDeviceIdAndClientIdAndSendBlockAndRemoteMediaIdAndAudioStreamAndVideoStreamAndDataStreamAndUseWebSocketsForMedia

- (FMLiveSwitchMessage*) createSfuDownstreamConnectionWithSharedLockAndApplicationIdAndChannelIdAndUserIdAndDeviceIdAndClientIdAndSendBlockAndRemoteMediaIdAndAudioStreamAndVideoStreamAndDataStreamAndUseWebSocketsForMedia

◆ createSfuUpstreamConnectionWithSharedLock:applicationId:channelId:userId:deviceId:clientId:send:audioStream:videoStream:dataStream:mediaId:

- (FMLiveSwitchSfuUpstreamConnection*) createSfuUpstreamConnectionWithSharedLock: (id sharedLock
applicationId: (NSString *)  applicationId
channelId: (NSString *)  channelId
userId: (NSString *)  userId
deviceId: (NSString *)  deviceId
clientId: (NSString *)  clientId
send: (FMLiveSwitchFunction1< FMLiveSwitchMessage *, FMLiveSwitchFuture< FMLiveSwitchMessage * > * > *)  send
audioStream: (FMLiveSwitchAudioStream *)  audioStream
videoStream: (FMLiveSwitchVideoStream *)  videoStream
dataStream: (FMLiveSwitchDataStream *)  dataStream
mediaId: (NSString *)  mediaId 

◆ createSfuUpstreamConnectionWithSharedLock:applicationId:channelId:userId:deviceId:clientId:send:audioStream:videoStream:dataStream:mediaId:useWebSocketsForMedia:

- (FMLiveSwitchSfuUpstreamConnection*) createSfuUpstreamConnectionWithSharedLock: (id sharedLock
applicationId: (NSString *)  applicationId
channelId: (NSString *)  channelId
userId: (NSString *)  userId
deviceId: (NSString *)  deviceId
clientId: (NSString *)  clientId
send: (FMLiveSwitchFunction1< FMLiveSwitchMessage *, FMLiveSwitchFuture< FMLiveSwitchMessage * > * > *)  send
audioStream: (FMLiveSwitchAudioStream *)  audioStream
videoStream: (FMLiveSwitchVideoStream *)  videoStream
dataStream: (FMLiveSwitchDataStream *)  dataStream
mediaId: (NSString *)  mediaId
useWebSocketsForMedia: (bool)  useWebSocketsForMedia 

◆ createSfuUpstreamConnectionWithSharedLock:applicationId:channelId:userId:deviceId:clientId:sendBlock:audioStream:videoStream:dataStream:mediaId:

- (FMLiveSwitchSfuUpstreamConnection*) createSfuUpstreamConnectionWithSharedLock: (id sharedLock
applicationId: (NSString *)  applicationId
channelId: (NSString *)  channelId
userId: (NSString *)  userId
deviceId: (NSString *)  deviceId
clientId: (NSString *)  clientId
sendBlock: (FMLiveSwitchFuture< FMLiveSwitchMessage * > *(^)(FMLiveSwitchMessage *))  sendBlock
audioStream: (FMLiveSwitchAudioStream *)  audioStream
videoStream: (FMLiveSwitchVideoStream *)  videoStream
dataStream: (FMLiveSwitchDataStream *)  dataStream
mediaId: (NSString *)  mediaId 

◆ createSfuUpstreamConnectionWithSharedLock:applicationId:channelId:userId:deviceId:clientId:sendBlock:audioStream:videoStream:dataStream:mediaId:useWebSocketsForMedia:

- (FMLiveSwitchSfuUpstreamConnection*) createSfuUpstreamConnectionWithSharedLock: (id sharedLock
applicationId: (NSString *)  applicationId
channelId: (NSString *)  channelId
userId: (NSString *)  userId
deviceId: (NSString *)  deviceId
clientId: (NSString *)  clientId
sendBlock: (FMLiveSwitchFuture< FMLiveSwitchMessage * > *(^)(FMLiveSwitchMessage *))  sendBlock
audioStream: (FMLiveSwitchAudioStream *)  audioStream
videoStream: (FMLiveSwitchVideoStream *)  videoStream
dataStream: (FMLiveSwitchDataStream *)  dataStream
mediaId: (NSString *)  mediaId
useWebSocketsForMedia: (bool)  useWebSocketsForMedia 

◆ createSfuUpstreamConnectionWithSharedLockAndApplicationIdAndChannelIdAndUserIdAndDeviceIdAndClientIdAndSendBlockAndAudioStreamAndVideoStreamAndDataStreamAndMediaId

- (FMLiveSwitchMessage*) createSfuUpstreamConnectionWithSharedLockAndApplicationIdAndChannelIdAndUserIdAndDeviceIdAndClientIdAndSendBlockAndAudioStreamAndVideoStreamAndDataStreamAndMediaId

◆ createSfuUpstreamConnectionWithSharedLockAndApplicationIdAndChannelIdAndUserIdAndDeviceIdAndClientIdAndSendBlockAndAudioStreamAndVideoStreamAndDataStreamAndMediaIdAndUseWebSocketsForMedia

- (FMLiveSwitchMessage*) createSfuUpstreamConnectionWithSharedLockAndApplicationIdAndChannelIdAndUserIdAndDeviceIdAndClientIdAndSendBlockAndAudioStreamAndVideoStreamAndDataStreamAndMediaIdAndUseWebSocketsForMedia

◆ init

- (instancetype) init