NativeBindings
Native bindings for the MLWebRTC.AppDefinedVideoSource class.
Inherits from:
MagicLeapNativeBindings
Public Methods
MLResult.Code InitializeAppDefinedVideoSource
Initialized a given appDefinedVideoSource object and sets it's callbacks.
public static MLResult.Code InitializeAppDefinedVideoSource(
MLWebRTC.AppDefinedVideoSource appDefinedVideoSource
)
Parameters
Type | Name | Description |
---|---|---|
MLWebRTC.AppDefinedVideoSource | appDefinedVideoSource | The AppDefinedVideoSource object to initialize. |
Returns: MLResult.Result will be MLResult.Code.Ok if the connection was successfully created. MLResult.Result will be MLResult.Code.PermissionDenied if necessary permission is missing. MLResult.Result will be MLResult.Code.UnspecifiedFailure if failed due to other internal error.
MLResult.Code MLWebRTCSourceAppDefinedVideoSourcePushFrame
Creates the local source that links to the user's camera and mic.
public MLResult.Code MLWebRTCSourceAppDefinedVideoSourcePushFrame(
ulong sourceHandle,
in MLWebRTC.VideoSink.Frame.NativeBindings.MLWebRTCFrame frameNative
)
Parameters
Type | Name | Description |
---|---|---|
ulong | sourceHandle | The handle to the local source to return to the caller. |
in MLWebRTC.VideoSink.Frame.NativeBindings.MLWebRTCFrame | frameNative |
Returns: MLResult.Result will be MLResult.Code.Ok if the local source was successfully created. MLResult.Result will be MLResult.Code.PermissionDenied if necessary permission is missing. MLResult.Result will be MLResult.Code.UnspecifiedFailure if failed due to other internal error.
MLResult.Code MLWebRTCSourceCreateAppDefinedVideoSource
Creates the local source that links to the user's camera and mic.
public MLResult.Code MLWebRTCSourceCreateAppDefinedVideoSource(
in AppDefinedSource.NativeBindings.MLWebRTCAppDefinedSourceEventCallbacks callbacks,
out ulong sourceHandle
)
Parameters
Type | Name | Description |
---|---|---|
in AppDefinedSource.NativeBindings.MLWebRTCAppDefinedSourceEventCallbacks | sourceHandle | The handle to the local source to return to the caller. |
out ulong | sourceHandle |
Returns: MLResult.Result will be MLResult.Code.Ok if the local source was successfully created. MLResult.Result will be MLResult.Code.PermissionDenied if necessary permission is missing. MLResult.Result will be MLResult.Code.UnspecifiedFailure if failed due to other internal error.