Skip to main content
Version: 2.x

Interface IPeer

Declaration
public interface IPeer

Derived:
OdinNative.Unity.OdinPeer, OdinNative.Wrapper.PeerEntity

Properties

Id

peer id

Declaration
uint Id { get; }

UserId

token user id

Declaration
string UserId { get; }

Tags

user tags

Declaration
List<string> Tags { get; }

UserData

peer userdata

Declaration
IUserData UserData { get; }

Parent

Default value null indicates root or not set

Declaration
IRoom Parent { get; }

Methods

GetBasePeer()

Get the underlying OdinNative.Wrapper.PeerEntity

Declaration
PeerEntity GetBasePeer()
Returns

OdinNative.Wrapper.PeerEntity: native wrapper peer

GetRoomApi()

Get the underlying OdinNative.Wrapper.Room.Room

Declaration
Room GetRoomApi()
Returns

OdinNative.Wrapper.Room.Room: native wrapper room

GetEncoder()

Get encoder

Declaration
MediaEncoder GetEncoder()
Returns

OdinNative.Wrapper.MediaEncoder: input media encoder of the peer or null

GetDecoder()

Get decoder

Declaration
MediaDecoder GetDecoder()
Returns

OdinNative.Wrapper.MediaDecoder: output media decoder of the peer or null