Skip to main content
Version: 20 Mar 2024

MLWebRTC

NameSpace: MagicLeap

MLWebRTC class contains the API to interface with the WebRTC C API.

Inherits from:
MLAutoAPISingleton< MLWebRTC >,
MLLazySingleton< T >

Protected Methods

StartAPI

Creates a WebRTC instance.

protected virtual override MLResult.Code StartAPI()

Returns: MLResult.Result will be MLResult.Code.Ok if the MLWebRTC instance was created successfully.

Reimplements: StartAPI


StopAPI

Calls Disconnect(), destroys the WebRTC sinks and WebRTC instance.

protected virtual override MLResult.Code StopAPI()

Returns: MLResult.Result will be MLResult.Code.Ok if destroying all handles was successful. MLResult.Result will be MLResult.Code.WebRTCResultInstanceNotCreated if MLWebRTC instance was not created. MLResult.Result will be MLResult.Code.WebRTCResultMismatchingHandle if an incorrect handle was sent.

Reimplements: StopAPI


Update

Update loop used to process any connection events.

protected virtual override void Update()

Reimplements: Update


Public Enums

AndroidLogPriority

Copy of android_LogPriority from android/log.h.

EnumeratorValueDescription
Unkown0
Default
Verbose
Debug
Info
Warn
Error
Fatal
Silent

ProxyType

Protocol for the forward proxy.

EnumeratorValueDescription
Https
Socks5