internal static ADLRenderRequest toNative(RenderOptions options) { ADLRenderRequest result = new ADLRenderRequest(); result.sinkId = StringHelper.toNative(options.sinkId); result.mirror = options.mirror; result.filter = StringHelper.toNative(options.filter.StringValue); result.opaque = IntPtr.Zero; return(result); }
internal ADLAuthDetails toNative() { var aad = new ADLAuthDetails(); aad.expires = expires; aad.userId = userId; aad.salt = StringHelper.toNative(salt); aad.signature = StringHelper.toNative(signature); return(aad); }
internal static ADLMediaPublishOptions toNative(MediaPublishOptions options) { ADLMediaPublishOptions result = new ADLMediaPublishOptions(); if (options != null) { result.windowId = StringHelper.toNative(options.windowId); result.nativeWidth = options.nativeWidth; } return(result); }
internal ADLConnectionDescription toNative() { var cd = new ADLConnectionDescription(); cd.autopublishAudio = autopublishAudio; cd.autopublishVideo = autopublishVideo; cd.scopeId = StringHelper.toNative(scopeId); cd.url = StringHelper.toNative(url); cd.authDetails = authDetails.toNative(); cd.videoStream = videoStream.toNative(); return(cd); }
// ===================================================================== /// <inheritdoc /> public void stopMeasuringStatistics(Responder <object> responder, string scopeId) { if (!isPlatformInitialized <object>(responder)) { return; } ADLString nScopeId = StringHelper.toNative(scopeId); NativeAPI.adl_stop_measuring_stats(_voidRCallback, _platformHandle, saveResponder(responder), ref nScopeId); }
// ===================================================================== /// <inheritdoc /> public void disconnect(Responder <object> responder, string scopeId) { if (!isPlatformInitialized <object>(responder)) { return; } ADLString scpId = StringHelper.toNative(scopeId); NativeAPI.adl_disconnect(_voidRCallback, _platformHandle, saveResponder(responder), ref scpId); }
// ===================================================================== /// <inheritdoc /> public void setVideoCaptureDevice(Responder <object> responder, string deviceId) { if (!isPlatformInitialized <object>(responder)) { return; } ADLString devId = StringHelper.toNative(deviceId); NativeAPI.adl_set_video_capture_device( _voidRCallback, _platformHandle, saveResponder(responder), ref devId); }
// ===================================================================== /// <inheritdoc /> public void setAudioOutputDevice(Responder <object> responder, string deviceId) { if (!isPlatformInitialized <object>(responder)) { return; } ADLString devId = StringHelper.toNative(deviceId); NativeAPI.adl_set_audio_output_device( _voidRCallback, _platformHandle, saveResponder(responder), ref devId); }
// ===================================================================== /// <inheritdoc /> public void sendMessage(Responder <object> responder, string scopeId, string message, long targetUserId) { if (!isPlatformInitialized <object>(responder)) { return; } ADLString scpId = StringHelper.toNative(scopeId); UIntPtr msgSz = new UIntPtr((message != null) ? (uint)message.Length : 0u); NativeAPI.adl_send_message(_voidRCallback, _platformHandle, saveResponder(responder), ref scpId, message, msgSz, ref targetUserId); }
// ===================================================================== /// <inheritdoc /> public void unpublish(Responder <object> responder, string scopeId, MediaType mediaType) { if (!isPlatformInitialized <object>(responder)) { return; } ADLString scpId = StringHelper.toNative(scopeId); ADLString mediaTp = StringHelper.toNative(mediaType.StringValue); NativeAPI.adl_unpublish(_voidRCallback, _platformHandle, saveResponder(responder), ref scpId, ref mediaTp); }