WebRTC
WebRTC copied to clipboard
[RTCPeerConnectionFactory mediaStreamWithStreamId:]
I am trying to create a local media stream like:
self.pcFactory = RTCPeerConnectionFactory()
let localStream = pcFactory.mediaStream(withStreamId: "ARDAMS")
But this throws an error: -[RTCPeerConnectionFactory mediaStreamWithStreamId:]: unrecognized selector sent to instance 0x170033160 *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[RTCPeerConnectionFactory mediaStreamWithStreamId:]: unrecognized selector sent to instance 0x170033160' *** First throw call stack: (0x19124afd8 0x18fcac538 0x191251ef4 0x19124ef4c 0x19114ad2c 0x100044308 0x100044028 0x100040d8c 0x102129a50 0x102129a10 0x10212eb78 0x1911f90c0 0x1911f6cdc 0x191126d94 0x192b90074 0x1973df130 0x10005bccc 0x19013559c) libc++abi.dylib: terminating with uncaught exception of type NSException
Try the latest release. Not sure what can be a problem here.