Designates a P2P call with another contact. During a call, both the user and the contact may publish and subscribe to each other's streams.
open private(set) var id: String!
open func hangUp(completion: @escaping () -> Void)
Stops call with contact
open func replacePublishedStream(withStream stream: Stream, completion: @escaping (_ error: Error?) -> Void)
Replaces the currently published stream by a given one. If the first parameter is null then the second parameter must provides a property named getStream. The getStream property shall be a function returning a Promise of a Stream
open func stopPublishedStream(streamId: String, completion: @escaping (_ error: Error?) -> Void)
Stops the currently published stream
open func getReceivedStreams() -> [Stream]?
Returns call's currently received streams
open func getPublishedStreams() -> [Stream]?
Returns call's currently published streams