Consume
StartConsumerPeer(string peerId);
Call this function to consume individual peer. This function will invoke Event Huddle01Core.OnStartConsumingPeer
once the process is successfully done
Parameters
Param | Type | Description |
---|---|---|
peerId | string | The peer ID of the Remote Peer to consume from. |
.csharp
public void ConsumePeer(string peerId)
{
Huddle01Core.Instance.StartConsumerPeer(peerId);
}
StopConsumePeer(string peerId,string label);
Call this function to stop consuming individual peer.This function will invoke Event Huddle01Core.OnStopConsumingPeer
once the process is successfully done
Parameters
Param | Type | Description |
---|---|---|
peerId | string | The peer ID of the Remote Peer |
.csharp
public void StopConsumePeer(string peerId)
{
Huddle01Core.Instance.StopConsumeingPeer(roomId);
}