@ale-rainbow/web-sdk 5.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +44 -0
- package/lib/index.d.ts +8 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +501 -0
- package/lib/index.js.map +7 -0
- package/lib/libs/index.d.ts +3 -0
- package/lib/libs/index.d.ts.map +1 -0
- package/lib/libs/strophe/strophe-plugin.d.ts +13 -0
- package/lib/libs/strophe/strophe-plugin.d.ts.map +1 -0
- package/lib/libs/strophe/strophe.jingle.d.ts +35 -0
- package/lib/libs/strophe/strophe.jingle.d.ts.map +1 -0
- package/lib/libs/strophe/strophe.jingle.sdp.d.ts +44 -0
- package/lib/libs/strophe/strophe.jingle.sdp.d.ts.map +1 -0
- package/lib/libs/strophe/strophe.jingle.session.d.ts +624 -0
- package/lib/libs/strophe/strophe.jingle.session.d.ts.map +1 -0
- package/lib/libs/strophe/strophe.jingle.session.stats.d.ts +791 -0
- package/lib/libs/strophe/strophe.jingle.session.stats.d.ts.map +1 -0
- package/lib/libs/strophe/strophe.lastactivity.d.ts +9 -0
- package/lib/libs/strophe/strophe.lastactivity.d.ts.map +1 -0
- package/lib/libs/strophe/strophe.mam.d.ts +11 -0
- package/lib/libs/strophe/strophe.mam.d.ts.map +1 -0
- package/lib/libs/strophe/strophe.ping.d.ts +39 -0
- package/lib/libs/strophe/strophe.ping.d.ts.map +1 -0
- package/lib/libs/strophe/strophe.rsm.d.ts +24 -0
- package/lib/libs/strophe/strophe.rsm.d.ts.map +1 -0
- package/lib/libs/strophe/types.d.ts +23 -0
- package/lib/libs/strophe/types.d.ts.map +1 -0
- package/lib/models/authSettings.model.d.ts +38 -0
- package/lib/models/authSettings.model.d.ts.map +1 -0
- package/lib/models/bubble.model.d.ts +1114 -0
- package/lib/models/bubble.model.d.ts.map +1 -0
- package/lib/models/bubbleConferenceRecap.model.d.ts +532 -0
- package/lib/models/bubbleConferenceRecap.model.d.ts.map +1 -0
- package/lib/models/call.model.d.ts +1271 -0
- package/lib/models/call.model.d.ts.map +1 -0
- package/lib/models/callLog.model.d.ts +361 -0
- package/lib/models/callLog.model.d.ts.map +1 -0
- package/lib/models/channel.model.d.ts +692 -0
- package/lib/models/channel.model.d.ts.map +1 -0
- package/lib/models/channelMessage.model.d.ts +300 -0
- package/lib/models/channelMessage.model.d.ts.map +1 -0
- package/lib/models/cli.model.d.ts +59 -0
- package/lib/models/cli.model.d.ts.map +1 -0
- package/lib/models/common/context.d.ts +37 -0
- package/lib/models/common/context.d.ts.map +1 -0
- package/lib/models/common/error.d.ts +26 -0
- package/lib/models/common/error.d.ts.map +1 -0
- package/lib/models/common/fileDescriptor.d.ts +317 -0
- package/lib/models/common/fileDescriptor.d.ts.map +1 -0
- package/lib/models/common/filePublicDownload.d.ts +26 -0
- package/lib/models/common/filePublicDownload.d.ts.map +1 -0
- package/lib/models/common/fileViewer.d.ts +20 -0
- package/lib/models/common/fileViewer.d.ts.map +1 -0
- package/lib/models/common/index.d.ts +9 -0
- package/lib/models/common/index.d.ts.map +1 -0
- package/lib/models/common/theme.d.ts +185 -0
- package/lib/models/common/theme.d.ts.map +1 -0
- package/lib/models/common/themeColor.d.ts +47 -0
- package/lib/models/common/themeColor.d.ts.map +1 -0
- package/lib/models/common/userTheme.d.ts +42 -0
- package/lib/models/common/userTheme.d.ts.map +1 -0
- package/lib/models/company-invitation.model.d.ts +42 -0
- package/lib/models/company-invitation.model.d.ts.map +1 -0
- package/lib/models/company.model.d.ts +639 -0
- package/lib/models/company.model.d.ts.map +1 -0
- package/lib/models/contact.model.d.ts +1208 -0
- package/lib/models/contact.model.d.ts.map +1 -0
- package/lib/models/conversation.model.d.ts +768 -0
- package/lib/models/conversation.model.d.ts.map +1 -0
- package/lib/models/customManifest.model.d.ts +82 -0
- package/lib/models/customManifest.model.d.ts.map +1 -0
- package/lib/models/dataChannel.model.d.ts +178 -0
- package/lib/models/dataChannel.model.d.ts.map +1 -0
- package/lib/models/dial-in-phone-numbers.model.d.ts +18 -0
- package/lib/models/dial-in-phone-numbers.model.d.ts.map +1 -0
- package/lib/models/directoryContact.model.d.ts +205 -0
- package/lib/models/directoryContact.model.d.ts.map +1 -0
- package/lib/models/event.model.d.ts +14 -0
- package/lib/models/event.model.d.ts.map +1 -0
- package/lib/models/favorite.model.d.ts +94 -0
- package/lib/models/favorite.model.d.ts.map +1 -0
- package/lib/models/fileDocument.model.d.ts +345 -0
- package/lib/models/fileDocument.model.d.ts.map +1 -0
- package/lib/models/geoLoc.model.d.ts +6 -0
- package/lib/models/geoLoc.model.d.ts.map +1 -0
- package/lib/models/index.d.ts +46 -0
- package/lib/models/index.d.ts.map +1 -0
- package/lib/models/invitation.model.d.ts +88 -0
- package/lib/models/invitation.model.d.ts.map +1 -0
- package/lib/models/invoices.model.d.ts +76 -0
- package/lib/models/invoices.model.d.ts.map +1 -0
- package/lib/models/logEntry.model.d.ts +23 -0
- package/lib/models/logEntry.model.d.ts.map +1 -0
- package/lib/models/message.model.d.ts +400 -0
- package/lib/models/message.model.d.ts.map +1 -0
- package/lib/models/messageAdditionalContent.parsers.d.ts +32 -0
- package/lib/models/messageAdditionalContent.parsers.d.ts.map +1 -0
- package/lib/models/offer.model.d.ts +16 -0
- package/lib/models/offer.model.d.ts.map +1 -0
- package/lib/models/p2pRecap.model.d.ts +372 -0
- package/lib/models/p2pRecap.model.d.ts.map +1 -0
- package/lib/models/paymentMethods.model.d.ts +98 -0
- package/lib/models/paymentMethods.model.d.ts.map +1 -0
- package/lib/models/personalRoutine.model.d.ts +173 -0
- package/lib/models/personalRoutine.model.d.ts.map +1 -0
- package/lib/models/poll.model.d.ts +139 -0
- package/lib/models/poll.model.d.ts.map +1 -0
- package/lib/models/rainbow-auth.model.d.ts +137 -0
- package/lib/models/rainbow-auth.model.d.ts.map +1 -0
- package/lib/models/searchTextConvResults.model.d.ts +30 -0
- package/lib/models/searchTextConvResults.model.d.ts.map +1 -0
- package/lib/models/site.model.d.ts +165 -0
- package/lib/models/site.model.d.ts.map +1 -0
- package/lib/models/subscription.model.d.ts +592 -0
- package/lib/models/subscription.model.d.ts.map +1 -0
- package/lib/models/telephonyConfig.model.d.ts +144 -0
- package/lib/models/telephonyConfig.model.d.ts.map +1 -0
- package/lib/models/telephonyForward.model.d.ts +47 -0
- package/lib/models/telephonyForward.model.d.ts.map +1 -0
- package/lib/models/todo.model.d.ts +103 -0
- package/lib/models/todo.model.d.ts.map +1 -0
- package/lib/models/transcription.model.d.ts +59 -0
- package/lib/models/transcription.model.d.ts.map +1 -0
- package/lib/models/user.model.d.ts +1008 -0
- package/lib/models/user.model.d.ts.map +1 -0
- package/lib/models/userProfileTemplate.model.d.ts +735 -0
- package/lib/models/userProfileTemplate.model.d.ts.map +1 -0
- package/lib/models/usersList.model.d.ts +117 -0
- package/lib/models/usersList.model.d.ts.map +1 -0
- package/lib/models/webConferenceParticipant.model.d.ts +135 -0
- package/lib/models/webConferenceParticipant.model.d.ts.map +1 -0
- package/lib/models/webConferenceSession.model.d.ts +658 -0
- package/lib/models/webConferenceSession.model.d.ts.map +1 -0
- package/lib/models/webinar.model.d.ts +738 -0
- package/lib/models/webinar.model.d.ts.map +1 -0
- package/lib/models/webinarRecap.model.d.ts +118 -0
- package/lib/models/webinarRecap.model.d.ts.map +1 -0
- package/lib/node.d.ts +3 -0
- package/lib/node.d.ts.map +1 -0
- package/lib/node.js +423 -0
- package/lib/node.js.map +7 -0
- package/lib/node.sdk.d.ts +41 -0
- package/lib/node.sdk.d.ts.map +1 -0
- package/lib/plugins/admin.plugin.d.ts +6 -0
- package/lib/plugins/admin.plugin.d.ts.map +1 -0
- package/lib/plugins/bubbleConference.plugin.d.ts +6 -0
- package/lib/plugins/bubbleConference.plugin.d.ts.map +1 -0
- package/lib/plugins/bubbleTag.plugin.d.ts +6 -0
- package/lib/plugins/bubbleTag.plugin.d.ts.map +1 -0
- package/lib/plugins/bubbles.plugin.d.ts +6 -0
- package/lib/plugins/bubbles.plugin.d.ts.map +1 -0
- package/lib/plugins/businessDirectory.plugin.d.ts +6 -0
- package/lib/plugins/businessDirectory.plugin.d.ts.map +1 -0
- package/lib/plugins/callRecorder.plugin.d.ts +6 -0
- package/lib/plugins/callRecorder.plugin.d.ts.map +1 -0
- package/lib/plugins/calllog.plugin.d.ts +6 -0
- package/lib/plugins/calllog.plugin.d.ts.map +1 -0
- package/lib/plugins/calls.plugin.d.ts +6 -0
- package/lib/plugins/calls.plugin.d.ts.map +1 -0
- package/lib/plugins/channels.plugin.d.ts +6 -0
- package/lib/plugins/channels.plugin.d.ts.map +1 -0
- package/lib/plugins/dataChannel.plugin.d.ts +6 -0
- package/lib/plugins/dataChannel.plugin.d.ts.map +1 -0
- package/lib/plugins/deviceManagement.plugin.d.ts +6 -0
- package/lib/plugins/deviceManagement.plugin.d.ts.map +1 -0
- package/lib/plugins/favorites.plugin.d.ts +6 -0
- package/lib/plugins/favorites.plugin.d.ts.map +1 -0
- package/lib/plugins/fileDocument.plugin.d.ts +6 -0
- package/lib/plugins/fileDocument.plugin.d.ts.map +1 -0
- package/lib/plugins/helpCenter.plugin.d.ts +6 -0
- package/lib/plugins/helpCenter.plugin.d.ts.map +1 -0
- package/lib/plugins/index.d.ts +27 -0
- package/lib/plugins/index.d.ts.map +1 -0
- package/lib/plugins/microsoft0365Ad.plugin.d.ts +6 -0
- package/lib/plugins/microsoft0365Ad.plugin.d.ts.map +1 -0
- package/lib/plugins/pbxUsers.plugin.d.ts +6 -0
- package/lib/plugins/pbxUsers.plugin.d.ts.map +1 -0
- package/lib/plugins/personalDirectory.plugin.d.ts +6 -0
- package/lib/plugins/personalDirectory.plugin.d.ts.map +1 -0
- package/lib/plugins/plugin.d.ts +8 -0
- package/lib/plugins/plugin.d.ts.map +1 -0
- package/lib/plugins/polls.plugin.d.ts +6 -0
- package/lib/plugins/polls.plugin.d.ts.map +1 -0
- package/lib/plugins/rpc.plugin.d.ts +6 -0
- package/lib/plugins/rpc.plugin.d.ts.map +1 -0
- package/lib/plugins/telemetry.plugin.d.ts +6 -0
- package/lib/plugins/telemetry.plugin.d.ts.map +1 -0
- package/lib/plugins/telephony.plugin.d.ts +6 -0
- package/lib/plugins/telephony.plugin.d.ts.map +1 -0
- package/lib/plugins/telephonyConfig.plugin.d.ts +6 -0
- package/lib/plugins/telephonyConfig.plugin.d.ts.map +1 -0
- package/lib/plugins/transcription.plugin.d.ts +6 -0
- package/lib/plugins/transcription.plugin.d.ts.map +1 -0
- package/lib/plugins/usersList.plugin.d.ts +6 -0
- package/lib/plugins/usersList.plugin.d.ts.map +1 -0
- package/lib/plugins/virtualBackground.plugin.d.ts +6 -0
- package/lib/plugins/virtualBackground.plugin.d.ts.map +1 -0
- package/lib/plugins/webinar.plugin.d.ts +6 -0
- package/lib/plugins/webinar.plugin.d.ts.map +1 -0
- package/lib/rainbow.sdk.d.ts +309 -0
- package/lib/rainbow.sdk.d.ts.map +1 -0
- package/lib/services/admin/admin-alarm.service.d.ts +42 -0
- package/lib/services/admin/admin-alarm.service.d.ts.map +1 -0
- package/lib/services/admin/admin-company.service.d.ts +167 -0
- package/lib/services/admin/admin-company.service.d.ts.map +1 -0
- package/lib/services/admin/admin-department.service.d.ts +39 -0
- package/lib/services/admin/admin-department.service.d.ts.map +1 -0
- package/lib/services/admin/admin-invitation.service.d.ts +114 -0
- package/lib/services/admin/admin-invitation.service.d.ts.map +1 -0
- package/lib/services/admin/admin-management.service.d.ts +100 -0
- package/lib/services/admin/admin-management.service.d.ts.map +1 -0
- package/lib/services/admin/admin-rvcp.service.d.ts +43 -0
- package/lib/services/admin/admin-rvcp.service.d.ts.map +1 -0
- package/lib/services/admin/admin-site.service.d.ts +64 -0
- package/lib/services/admin/admin-site.service.d.ts.map +1 -0
- package/lib/services/admin/admin-subscription.service.d.ts +135 -0
- package/lib/services/admin/admin-subscription.service.d.ts.map +1 -0
- package/lib/services/admin/admin-tag.service.d.ts +79 -0
- package/lib/services/admin/admin-tag.service.d.ts.map +1 -0
- package/lib/services/admin/admin-user-profile.service.d.ts +76 -0
- package/lib/services/admin/admin-user-profile.service.d.ts.map +1 -0
- package/lib/services/admin/admin-user.service.d.ts +338 -0
- package/lib/services/admin/admin-user.service.d.ts.map +1 -0
- package/lib/services/admin/admin.common.d.ts +40 -0
- package/lib/services/admin/admin.common.d.ts.map +1 -0
- package/lib/services/admin/admin.service.d.ts +138 -0
- package/lib/services/admin/admin.service.d.ts.map +1 -0
- package/lib/services/admin/index.d.ts +14 -0
- package/lib/services/admin/index.d.ts.map +1 -0
- package/lib/services/bot/bot.service.d.ts +121 -0
- package/lib/services/bot/bot.service.d.ts.map +1 -0
- package/lib/services/bubbles/bubble.service.d.ts +889 -0
- package/lib/services/bubbles/bubble.service.d.ts.map +1 -0
- package/lib/services/bubbles/bubbleTag.service.d.ts +132 -0
- package/lib/services/bubbles/bubbleTag.service.d.ts.map +1 -0
- package/lib/services/bubbles/index.d.ts +3 -0
- package/lib/services/bubbles/index.d.ts.map +1 -0
- package/lib/services/call/call.service.d.ts +297 -0
- package/lib/services/call/call.service.d.ts.map +1 -0
- package/lib/services/call/callRecorder.service.d.ts +358 -0
- package/lib/services/call/callRecorder.service.d.ts.map +1 -0
- package/lib/services/call/index.d.ts +3 -0
- package/lib/services/call/index.d.ts.map +1 -0
- package/lib/services/callLog/callLog.service.d.ts +563 -0
- package/lib/services/callLog/callLog.service.d.ts.map +1 -0
- package/lib/services/callLog/index.d.ts +5 -0
- package/lib/services/callLog/index.d.ts.map +1 -0
- package/lib/services/callLog/p2pRecap.service.d.ts +206 -0
- package/lib/services/callLog/p2pRecap.service.d.ts.map +1 -0
- package/lib/services/channels/channel.service.d.ts +626 -0
- package/lib/services/channels/channel.service.d.ts.map +1 -0
- package/lib/services/channels/index.d.ts +3 -0
- package/lib/services/channels/index.d.ts.map +1 -0
- package/lib/services/citrix/citrix.service.d.ts +30 -0
- package/lib/services/citrix/citrix.service.d.ts.map +1 -0
- package/lib/services/citrix/index.d.ts +3 -0
- package/lib/services/citrix/index.d.ts.map +1 -0
- package/lib/services/company/company-directory.service.d.ts +222 -0
- package/lib/services/company/company-directory.service.d.ts.map +1 -0
- package/lib/services/conference/bubbleConference.service.d.ts +1237 -0
- package/lib/services/conference/bubbleConference.service.d.ts.map +1 -0
- package/lib/services/conference/bubbleConferenceRecap.service.d.ts +159 -0
- package/lib/services/conference/bubbleConferenceRecap.service.d.ts.map +1 -0
- package/lib/services/conference/index.d.ts +5 -0
- package/lib/services/conference/index.d.ts.map +1 -0
- package/lib/services/conference/webConferenceHelper.d.ts +25 -0
- package/lib/services/conference/webConferenceHelper.d.ts.map +1 -0
- package/lib/services/conversation/conversation.service.d.ts +723 -0
- package/lib/services/conversation/conversation.service.d.ts.map +1 -0
- package/lib/services/conversation/conversationServiceBulkHistoryHandler.d.ts +39 -0
- package/lib/services/conversation/conversationServiceBulkHistoryHandler.d.ts.map +1 -0
- package/lib/services/conversation/conversationServiceEventHandler.d.ts +78 -0
- package/lib/services/conversation/conversationServiceEventHandler.d.ts.map +1 -0
- package/lib/services/conversation/index.d.ts +3 -0
- package/lib/services/conversation/index.d.ts.map +1 -0
- package/lib/services/core/account.service.d.ts +98 -0
- package/lib/services/core/account.service.d.ts.map +1 -0
- package/lib/services/core/auth.service.d.ts +303 -0
- package/lib/services/core/auth.service.d.ts.map +1 -0
- package/lib/services/core/company.service.d.ts +30 -0
- package/lib/services/core/company.service.d.ts.map +1 -0
- package/lib/services/core/connection.service.d.ts +209 -0
- package/lib/services/core/connection.service.d.ts.map +1 -0
- package/lib/services/core/contact.service.d.ts +617 -0
- package/lib/services/core/contact.service.d.ts.map +1 -0
- package/lib/services/core/country.service.d.ts +66 -0
- package/lib/services/core/country.service.d.ts.map +1 -0
- package/lib/services/core/directorySearch.service.d.ts +305 -0
- package/lib/services/core/directorySearch.service.d.ts.map +1 -0
- package/lib/services/core/event.service.d.ts +31 -0
- package/lib/services/core/event.service.d.ts.map +1 -0
- package/lib/services/core/i18n.service.d.ts +19 -0
- package/lib/services/core/i18n.service.d.ts.map +1 -0
- package/lib/services/core/imageUtils.service.d.ts +15 -0
- package/lib/services/core/imageUtils.service.d.ts.map +1 -0
- package/lib/services/core/index.d.ts +19 -0
- package/lib/services/core/index.d.ts.map +1 -0
- package/lib/services/core/logger.service.d.ts +143 -0
- package/lib/services/core/logger.service.d.ts.map +1 -0
- package/lib/services/core/logging.service.d.ts +51 -0
- package/lib/services/core/logging.service.d.ts.map +1 -0
- package/lib/services/core/main.service.d.ts +124 -0
- package/lib/services/core/main.service.d.ts.map +1 -0
- package/lib/services/core/presenceHelper.service.d.ts +73 -0
- package/lib/services/core/presenceHelper.service.d.ts.map +1 -0
- package/lib/services/core/profile.service.d.ts +453 -0
- package/lib/services/core/profile.service.d.ts.map +1 -0
- package/lib/services/core/settings.service.d.ts +82 -0
- package/lib/services/core/settings.service.d.ts.map +1 -0
- package/lib/services/core/userInfo.service.d.ts +25 -0
- package/lib/services/core/userInfo.service.d.ts.map +1 -0
- package/lib/services/core/userNetwork.service.d.ts +171 -0
- package/lib/services/core/userNetwork.service.d.ts.map +1 -0
- package/lib/services/core/xmpp.service.d.ts +99 -0
- package/lib/services/core/xmpp.service.d.ts.map +1 -0
- package/lib/services/dataChannel/dataChannel.service.d.ts +102 -0
- package/lib/services/dataChannel/dataChannel.service.d.ts.map +1 -0
- package/lib/services/dataChannel/index.d.ts +3 -0
- package/lib/services/dataChannel/index.d.ts.map +1 -0
- package/lib/services/deviceManagement/deviceEchoFilter.d.ts +86 -0
- package/lib/services/deviceManagement/deviceEchoFilter.d.ts.map +1 -0
- package/lib/services/deviceManagement/deviceManagement.service.d.ts +290 -0
- package/lib/services/deviceManagement/deviceManagement.service.d.ts.map +1 -0
- package/lib/services/deviceManagement/index.d.ts +2 -0
- package/lib/services/deviceManagement/index.d.ts.map +1 -0
- package/lib/services/deviceManagement/webHidManager.service.d.ts +616 -0
- package/lib/services/deviceManagement/webHidManager.service.d.ts.map +1 -0
- package/lib/services/directory/directory.service.d.ts +108 -0
- package/lib/services/directory/directory.service.d.ts.map +1 -0
- package/lib/services/directory/index.d.ts +3 -0
- package/lib/services/directory/index.d.ts.map +1 -0
- package/lib/services/directory/office365ad.service.d.ts +74 -0
- package/lib/services/directory/office365ad.service.d.ts.map +1 -0
- package/lib/services/directory/personal-directory.service.d.ts +425 -0
- package/lib/services/directory/personal-directory.service.d.ts.map +1 -0
- package/lib/services/directory/phonebook.service.d.ts +43 -0
- package/lib/services/directory/phonebook.service.d.ts.map +1 -0
- package/lib/services/event-mixin.d.ts +75 -0
- package/lib/services/event-mixin.d.ts.map +1 -0
- package/lib/services/favorites/favorites.service.d.ts +313 -0
- package/lib/services/favorites/favorites.service.d.ts.map +1 -0
- package/lib/services/favorites/index.d.ts +3 -0
- package/lib/services/favorites/index.d.ts.map +1 -0
- package/lib/services/fileDocument/fileDocument.service.d.ts +229 -0
- package/lib/services/fileDocument/fileDocument.service.d.ts.map +1 -0
- package/lib/services/fileDocument/index.d.ts +5 -0
- package/lib/services/fileDocument/index.d.ts.map +1 -0
- package/lib/services/files/fileDescriptorEventHandler.service.d.ts +18 -0
- package/lib/services/files/fileDescriptorEventHandler.service.d.ts.map +1 -0
- package/lib/services/files/fileServer.service.d.ts +268 -0
- package/lib/services/files/fileServer.service.d.ts.map +1 -0
- package/lib/services/files/fileStorage.service.d.ts +426 -0
- package/lib/services/files/fileStorage.service.d.ts.map +1 -0
- package/lib/services/helpcenter/helpCenter.service.d.ts +207 -0
- package/lib/services/helpcenter/helpCenter.service.d.ts.map +1 -0
- package/lib/services/helpcenter/index.d.ts +4 -0
- package/lib/services/helpcenter/index.d.ts.map +1 -0
- package/lib/services/helpcenter/whatsNew.service.d.ts +47 -0
- package/lib/services/helpcenter/whatsNew.service.d.ts.map +1 -0
- package/lib/services/horizon/horizon.service.d.ts +31 -0
- package/lib/services/horizon/horizon.service.d.ts.map +1 -0
- package/lib/services/horizon/index.d.ts +3 -0
- package/lib/services/horizon/index.d.ts.map +1 -0
- package/lib/services/index.d.ts +35 -0
- package/lib/services/index.d.ts.map +1 -0
- package/lib/services/launcher/config/sdkLaunchConfig.d.ts +8 -0
- package/lib/services/launcher/config/sdkLaunchConfig.d.ts.map +1 -0
- package/lib/services/localTranslation/chromeTranslation.engine.d.ts +79 -0
- package/lib/services/localTranslation/chromeTranslation.engine.d.ts.map +1 -0
- package/lib/services/localTranslation/index.d.ts +6 -0
- package/lib/services/localTranslation/index.d.ts.map +1 -0
- package/lib/services/localTranslation/localTranslation.service.d.ts +129 -0
- package/lib/services/localTranslation/localTranslation.service.d.ts.map +1 -0
- package/lib/services/localTranslation/translationEngine.d.ts +81 -0
- package/lib/services/localTranslation/translationEngine.d.ts.map +1 -0
- package/lib/services/metrics/analytics.service.d.ts +63 -0
- package/lib/services/metrics/analytics.service.d.ts.map +1 -0
- package/lib/services/metrics/index.d.ts +2 -0
- package/lib/services/metrics/index.d.ts.map +1 -0
- package/lib/services/notifications/index.d.ts +2 -0
- package/lib/services/notifications/index.d.ts.map +1 -0
- package/lib/services/notifications/notificationCenter.service.d.ts +178 -0
- package/lib/services/notifications/notificationCenter.service.d.ts.map +1 -0
- package/lib/services/notifications/notificationsViewer.service.d.ts +46 -0
- package/lib/services/notifications/notificationsViewer.service.d.ts.map +1 -0
- package/lib/services/personalRoutines/personal-routines.service.d.ts +159 -0
- package/lib/services/personalRoutines/personal-routines.service.d.ts.map +1 -0
- package/lib/services/polls/index.d.ts +2 -0
- package/lib/services/polls/index.d.ts.map +1 -0
- package/lib/services/polls/polls.service.d.ts +139 -0
- package/lib/services/polls/polls.service.d.ts.map +1 -0
- package/lib/services/ringing/index.d.ts +2 -0
- package/lib/services/ringing/index.d.ts.map +1 -0
- package/lib/services/ringing/ringing.service.d.ts +535 -0
- package/lib/services/ringing/ringing.service.d.ts.map +1 -0
- package/lib/services/rpc/index.d.ts +2 -0
- package/lib/services/rpc/index.d.ts.map +1 -0
- package/lib/services/rpc/rpc.service.d.ts +75 -0
- package/lib/services/rpc/rpc.service.d.ts.map +1 -0
- package/lib/services/service.d.ts +9 -0
- package/lib/services/service.d.ts.map +1 -0
- package/lib/services/speechRecognitionService/speechRecognition.service.d.ts +87 -0
- package/lib/services/speechRecognitionService/speechRecognition.service.d.ts.map +1 -0
- package/lib/services/subscription/index.d.ts +4 -0
- package/lib/services/subscription/index.d.ts.map +1 -0
- package/lib/services/subscription/invoices.service.d.ts +78 -0
- package/lib/services/subscription/invoices.service.d.ts.map +1 -0
- package/lib/services/subscription/paymentMethods.service.d.ts +164 -0
- package/lib/services/subscription/paymentMethods.service.d.ts.map +1 -0
- package/lib/services/subscription/subscription.service.d.ts +510 -0
- package/lib/services/subscription/subscription.service.d.ts.map +1 -0
- package/lib/services/support/index.d.ts +2 -0
- package/lib/services/support/index.d.ts.map +1 -0
- package/lib/services/support/support.model.d.ts +143 -0
- package/lib/services/support/support.model.d.ts.map +1 -0
- package/lib/services/support/support.service.d.ts +162 -0
- package/lib/services/support/support.service.d.ts.map +1 -0
- package/lib/services/telemetry/index.d.ts +3 -0
- package/lib/services/telemetry/index.d.ts.map +1 -0
- package/lib/services/telemetry/jsonRPC.service.d.ts +25 -0
- package/lib/services/telemetry/jsonRPC.service.d.ts.map +1 -0
- package/lib/services/telemetry/telemetry.service.d.ts +22 -0
- package/lib/services/telemetry/telemetry.service.d.ts.map +1 -0
- package/lib/services/telephony/index.d.ts +4 -0
- package/lib/services/telephony/index.d.ts.map +1 -0
- package/lib/services/telephony/supervision.service.d.ts +277 -0
- package/lib/services/telephony/supervision.service.d.ts.map +1 -0
- package/lib/services/telephony/telephony.service.d.ts +1476 -0
- package/lib/services/telephony/telephony.service.d.ts.map +1 -0
- package/lib/services/telephony/telephonyCcdAgent.service.d.ts +63 -0
- package/lib/services/telephony/telephonyCcdAgent.service.d.ts.map +1 -0
- package/lib/services/telephony/telephonyHybridEventHandler.d.ts +360 -0
- package/lib/services/telephony/telephonyHybridEventHandler.d.ts.map +1 -0
- package/lib/services/telephony/telephonyKeys.service.d.ts +86 -0
- package/lib/services/telephony/telephonyKeys.service.d.ts.map +1 -0
- package/lib/services/telephony/telephonySipWise.service.d.ts +543 -0
- package/lib/services/telephony/telephonySipWise.service.d.ts.map +1 -0
- package/lib/services/telephony/telephonySipWiseEventHandler.d.ts +462 -0
- package/lib/services/telephony/telephonySipWiseEventHandler.d.ts.map +1 -0
- package/lib/services/telephonyConfig/index.d.ts +3 -0
- package/lib/services/telephonyConfig/index.d.ts.map +1 -0
- package/lib/services/telephonyConfig/telephonyConfig.service.d.ts +150 -0
- package/lib/services/telephonyConfig/telephonyConfig.service.d.ts.map +1 -0
- package/lib/services/todo/todo.service.d.ts +358 -0
- package/lib/services/todo/todo.service.d.ts.map +1 -0
- package/lib/services/transcription/index.d.ts +2 -0
- package/lib/services/transcription/index.d.ts.map +1 -0
- package/lib/services/transcription/liveTranscription.service.d.ts +94 -0
- package/lib/services/transcription/liveTranscription.service.d.ts.map +1 -0
- package/lib/services/ulrMetadata/urlMetadata.service.d.ts +51 -0
- package/lib/services/ulrMetadata/urlMetadata.service.d.ts.map +1 -0
- package/lib/services/users/index.d.ts +3 -0
- package/lib/services/users/index.d.ts.map +1 -0
- package/lib/services/users/user.service.d.ts +146 -0
- package/lib/services/users/user.service.d.ts.map +1 -0
- package/lib/services/users/usersLists.service.d.ts +239 -0
- package/lib/services/users/usersLists.service.d.ts.map +1 -0
- package/lib/services/utilities/browserDatabase.service.d.ts +69 -0
- package/lib/services/utilities/browserDatabase.service.d.ts.map +1 -0
- package/lib/services/utilities/errorHelper.service.d.ts +24 -0
- package/lib/services/utilities/errorHelper.service.d.ts.map +1 -0
- package/lib/services/utilities/index.d.ts +4 -0
- package/lib/services/utilities/index.d.ts.map +1 -0
- package/lib/services/utilities/utilities.service.d.ts +74 -0
- package/lib/services/utilities/utilities.service.d.ts.map +1 -0
- package/lib/services/virtualBackground/RBVirtualBackground.service.d.ts +228 -0
- package/lib/services/virtualBackground/RBVirtualBackground.service.d.ts.map +1 -0
- package/lib/services/virtualBackground/index.d.ts +4 -0
- package/lib/services/virtualBackground/index.d.ts.map +1 -0
- package/lib/services/virtualBackground/personalVideoBackground.d.ts +190 -0
- package/lib/services/virtualBackground/personalVideoBackground.d.ts.map +1 -0
- package/lib/services/virtualBackground/pipeline/canvas2D/canvas2DPipeline.d.ts +66 -0
- package/lib/services/virtualBackground/pipeline/canvas2D/canvas2DPipeline.d.ts.map +1 -0
- package/lib/services/virtualBackground/pipeline/webgl2/blurStage.d.ts +88 -0
- package/lib/services/virtualBackground/pipeline/webgl2/blurStage.d.ts.map +1 -0
- package/lib/services/virtualBackground/pipeline/webgl2/imageStage.d.ts +69 -0
- package/lib/services/virtualBackground/pipeline/webgl2/imageStage.d.ts.map +1 -0
- package/lib/services/virtualBackground/pipeline/webgl2/jointBilateralFilter.d.ts +55 -0
- package/lib/services/virtualBackground/pipeline/webgl2/jointBilateralFilter.d.ts.map +1 -0
- package/lib/services/virtualBackground/pipeline/webgl2/resizingStage.d.ts +59 -0
- package/lib/services/virtualBackground/pipeline/webgl2/resizingStage.d.ts.map +1 -0
- package/lib/services/virtualBackground/pipeline/webgl2/softMax.d.ts +34 -0
- package/lib/services/virtualBackground/pipeline/webgl2/softMax.d.ts.map +1 -0
- package/lib/services/virtualBackground/pipeline/webgl2/webgl2Pipeline.d.ts +62 -0
- package/lib/services/virtualBackground/pipeline/webgl2/webgl2Pipeline.d.ts.map +1 -0
- package/lib/services/virtualBackground/pipeline/webgl2/webglHelper.d.ts +56 -0
- package/lib/services/virtualBackground/pipeline/webgl2/webglHelper.d.ts.map +1 -0
- package/lib/services/virtualBackground/virtualBackground.service.d.ts +399 -0
- package/lib/services/virtualBackground/virtualBackground.service.d.ts.map +1 -0
- package/lib/services/webinars/index.d.ts +10 -0
- package/lib/services/webinars/index.d.ts.map +1 -0
- package/lib/services/webinars/telemetry/webinarTelemetry.model.d.ts +71 -0
- package/lib/services/webinars/telemetry/webinarTelemetry.model.d.ts.map +1 -0
- package/lib/services/webinars/telemetry/webinarTelemetry.service.d.ts +86 -0
- package/lib/services/webinars/telemetry/webinarTelemetry.service.d.ts.map +1 -0
- package/lib/services/webinars/telemetry/webinarTelemetryDatabase.d.ts +31 -0
- package/lib/services/webinars/telemetry/webinarTelemetryDatabase.d.ts.map +1 -0
- package/lib/services/webinars/webinarAudioMixer.d.ts +45 -0
- package/lib/services/webinars/webinarAudioMixer.d.ts.map +1 -0
- package/lib/services/webinars/webinarConference.service.d.ts +323 -0
- package/lib/services/webinars/webinarConference.service.d.ts.map +1 -0
- package/lib/services/webinars/webinarConference.utils.d.ts +24 -0
- package/lib/services/webinars/webinarConference.utils.d.ts.map +1 -0
- package/lib/services/webinars/webinarParticipants.service.d.ts +43 -0
- package/lib/services/webinars/webinarParticipants.service.d.ts.map +1 -0
- package/lib/services/webinars/webinarSpeakers.service.d.ts +25 -0
- package/lib/services/webinars/webinarSpeakers.service.d.ts.map +1 -0
- package/lib/services/webinars/webinarStoryLine.service.d.ts +117 -0
- package/lib/services/webinars/webinarStoryLine.service.d.ts.map +1 -0
- package/lib/services/webinars/webinars.service.d.ts +600 -0
- package/lib/services/webinars/webinars.service.d.ts.map +1 -0
- package/lib/services/webrtc/index.d.ts +5 -0
- package/lib/services/webrtc/index.d.ts.map +1 -0
- package/lib/services/webrtc/webrtcConfigAndUtils.d.ts +170 -0
- package/lib/services/webrtc/webrtcConfigAndUtils.d.ts.map +1 -0
- package/lib/services/webrtc/webrtcP2P.service.d.ts +521 -0
- package/lib/services/webrtc/webrtcP2P.service.d.ts.map +1 -0
- package/lib/services/webrtc/webrtcP2PEventHandler.d.ts +55 -0
- package/lib/services/webrtc/webrtcP2PEventHandler.d.ts.map +1 -0
- package/lib/services/webrtcGateway/webrtcGateway.service.d.ts +605 -0
- package/lib/services/webrtcGateway/webrtcGateway.service.d.ts.map +1 -0
- package/lib/strophejs.d.ts +3 -0
- package/lib/strophejs.d.ts.map +1 -0
- package/lib/typings/helpers.d.ts +3 -0
- package/lib/typings/helpers.d.ts.map +1 -0
- package/lib/utils/allSettled.d.ts +2 -0
- package/lib/utils/allSettled.d.ts.map +1 -0
- package/lib/utils/anonymizer.d.ts +28 -0
- package/lib/utils/anonymizer.d.ts.map +1 -0
- package/lib/utils/branded.d.ts +4 -0
- package/lib/utils/branded.d.ts.map +1 -0
- package/lib/utils/browser.d.ts +231 -0
- package/lib/utils/browser.d.ts.map +1 -0
- package/lib/utils/index.d.ts +12 -0
- package/lib/utils/index.d.ts.map +1 -0
- package/lib/utils/mediaPermissionError.d.ts +2 -0
- package/lib/utils/mediaPermissionError.d.ts.map +1 -0
- package/lib/utils/promiseQueue.d.ts +10 -0
- package/lib/utils/promiseQueue.d.ts.map +1 -0
- package/lib/utils/randomString.d.ts +3 -0
- package/lib/utils/randomString.d.ts.map +1 -0
- package/lib/utils/recordingArchiveName.d.ts +13 -0
- package/lib/utils/recordingArchiveName.d.ts.map +1 -0
- package/lib/utils/serverTimestamp.d.ts +15 -0
- package/lib/utils/serverTimestamp.d.ts.map +1 -0
- package/lib/utils/stringifyError.d.ts +2 -0
- package/lib/utils/stringifyError.d.ts.map +1 -0
- package/lib/utils/video.d.ts +27 -0
- package/lib/utils/video.d.ts.map +1 -0
- package/lib/utils/wait.d.ts +2 -0
- package/lib/utils/wait.d.ts.map +1 -0
- package/lib/utils/xmlParser.d.ts +102 -0
- package/lib/utils/xmlParser.d.ts.map +1 -0
- package/lib/utils/xmlValidation.d.ts +119 -0
- package/lib/utils/xmlValidation.d.ts.map +1 -0
- package/package.json +58 -0
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
import { BehaviorSubject, Subject } from "rxjs";
|
|
2
|
+
/**
|
|
3
|
+
* How tight the auto-framing crop is: a single switch with four positions.
|
|
4
|
+
*
|
|
5
|
+
* 0 is the pure wide picture -- not a wide crop, but no crop and no measurement at all, which is
|
|
6
|
+
* why it is a level of this setting rather than a separate on/off flag. 1 to 3 are progressively
|
|
7
|
+
* tighter framings.
|
|
8
|
+
*
|
|
9
|
+
* Mirrors `AutoFrameZoom` in the virtual background worker: the SDK does not depend on the worker
|
|
10
|
+
* package, so the union is declared here and the two must stay in step.
|
|
11
|
+
*/
|
|
12
|
+
export type AutoFrameZoom = 0 | 1 | 2 | 3;
|
|
13
|
+
export declare enum RBVirtualBackgroundBlurringLevel {
|
|
14
|
+
NORMAL = "normal",
|
|
15
|
+
DEEP = "deep"
|
|
16
|
+
}
|
|
17
|
+
export declare class RBVirtualBackgroundSettings {
|
|
18
|
+
modelAssetPath?: string;
|
|
19
|
+
wasmPath?: string;
|
|
20
|
+
videoWidth: number;
|
|
21
|
+
videoHeight: number;
|
|
22
|
+
framerate: number;
|
|
23
|
+
outputVideoWidth: number;
|
|
24
|
+
outputVideoHeight: number;
|
|
25
|
+
inlayRect: number[];
|
|
26
|
+
smoothMaskOn: boolean;
|
|
27
|
+
coverageMax: number;
|
|
28
|
+
coverageMin: number;
|
|
29
|
+
maskAverageDecayMin: number;
|
|
30
|
+
maskAverageDecayMax: number;
|
|
31
|
+
maskAverageDecayBoost: number;
|
|
32
|
+
maskAverageDecayThreshold: number;
|
|
33
|
+
filterOn: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* In mask texels, but note gaussian() doubles it internally, so the real sigma is 4.0 here. The spatial
|
|
36
|
+
* term is consequently near-flat -- corner taps of the 5x5 weigh 0.78 against 1.0 at the centre (0.37 if
|
|
37
|
+
* this were 1.0). It discriminates little either way; colorWeight is what actually shapes the edge.
|
|
38
|
+
*/
|
|
39
|
+
sigmaSpace: number;
|
|
40
|
+
/**
|
|
41
|
+
* Max luma gap (Rec.709) two taps may have and still blur together. Tuned on camera: 0.1 made the
|
|
42
|
+
* filter refuse to cross the contour at all, so the 256-wide mask's own grid showed through as
|
|
43
|
+
* staircased edges once backgroundStage upscaled it. 0.21 softens that without letting the mask
|
|
44
|
+
* bleed past the real edge -- which is what the misaligned sampling used to do.
|
|
45
|
+
*
|
|
46
|
+
* Caveat: 0.21 was tuned while the frame texture was still sampled NEAREST, so part of what it was
|
|
47
|
+
* absorbing was sampling noise rather than real edges. Now that the guide is filtered LINEAR it is
|
|
48
|
+
* likely too permissive -- worth re-tuning downwards from ~0.1.
|
|
49
|
+
*/
|
|
50
|
+
sigmaColor: number;
|
|
51
|
+
/** Temporary A/B switch: false replays the historical, misaligned frame sampling in the filter. */
|
|
52
|
+
filterGeometryFix: boolean;
|
|
53
|
+
lightOn: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* How much background colour bleeds onto the subject outline. The shader used to cube this, so 0.35
|
|
56
|
+
* actually delivered 0.043; it now applies once, making the same number ~8x stronger. Kept at 0.35 as
|
|
57
|
+
* a visible starting point -- it wants re-tuning on camera, likely downwards.
|
|
58
|
+
*/
|
|
59
|
+
lightWrapping: number;
|
|
60
|
+
blendMode: number;
|
|
61
|
+
/**
|
|
62
|
+
* Dose, 0 to 1. 0 skips the stage entirely rather than running it as a pass-through, so the
|
|
63
|
+
* default costs nothing at all -- which is what makes it safe to ship off and enable per user.
|
|
64
|
+
*
|
|
65
|
+
* Off by default: the correction is only ever right for a badly lit room, and applying it to a
|
|
66
|
+
* well lit one flattens a picture that was already fine. Needs tuning on camera before it can be
|
|
67
|
+
* considered for a non-zero default; 0.6 is a sensible starting point when switching it on.
|
|
68
|
+
*/
|
|
69
|
+
lightEnhanceStrength: number;
|
|
70
|
+
/**
|
|
71
|
+
* How much of the estimated illumination is divided out, 0 to 1. A full division is textbook
|
|
72
|
+
* Retinex and looks like a photocopy -- it removes the very shading that makes a face read as a
|
|
73
|
+
* solid object -- so this stays below 1 to keep some relief.
|
|
74
|
+
*/
|
|
75
|
+
lightEnhanceGamma: number;
|
|
76
|
+
/**
|
|
77
|
+
* Gamma lift on the model's input, 1 meaning untouched. Around 1.8 lifts a dim room appreciably.
|
|
78
|
+
*
|
|
79
|
+
* Off by default like the rest: it wants measuring on camera against maskOnly, and a boost applied
|
|
80
|
+
* to an already well lit frame flattens the very contrast the segmenter keys on.
|
|
81
|
+
*
|
|
82
|
+
* A gamma rather than Retinex on purpose -- Retinex leaves halos along strong contrast edges, and
|
|
83
|
+
* those edges are exactly what the model keys on. Lifting shadows without moving any edge is what
|
|
84
|
+
* is wanted here; beauty is not.
|
|
85
|
+
*/
|
|
86
|
+
modelInputBoost: number;
|
|
87
|
+
/**
|
|
88
|
+
* Debug view: display the 256x256 picture handed to the segmenter instead of the composited
|
|
89
|
+
* output, boost and letterbox bars included.
|
|
90
|
+
*
|
|
91
|
+
* The only direct way to judge modelInputBoost. Everywhere else that image is invisible by
|
|
92
|
+
* construction, so a boost that silently does nothing -- a browser ignoring ctx.filter, say --
|
|
93
|
+
* looks exactly like a boost that is working but too weak.
|
|
94
|
+
*/
|
|
95
|
+
showModelInput: boolean;
|
|
96
|
+
maskOnly: boolean;
|
|
97
|
+
statsEnabled: boolean;
|
|
98
|
+
/** Head measurements averaged before the framing locks. 8 covers a fraction of a second. */
|
|
99
|
+
autoFrameCalibrationFrames: number;
|
|
100
|
+
/**
|
|
101
|
+
* The one framing switch:
|
|
102
|
+
* 0 pure wide -- the untouched picture: no crop, no recentring, nothing measured
|
|
103
|
+
* 1 head and bust, with headroom
|
|
104
|
+
* 2 head and shoulders
|
|
105
|
+
* 3 tight portrait, top of the head near the edge
|
|
106
|
+
*
|
|
107
|
+
* 0 by default: framing is opt-in, and opting out has to give back the camera picture exactly as
|
|
108
|
+
* it is, which is what makes 0 a bypass rather than merely the widest crop.
|
|
109
|
+
*
|
|
110
|
+
* Above 0, the crop never enlarges the picture by more than about 2.5x: past that the upscale is
|
|
111
|
+
* visible as soft pixels, and a slightly wider shot looks better than a blurry one.
|
|
112
|
+
*/
|
|
113
|
+
autoFrameZoom: AutoFrameZoom;
|
|
114
|
+
/** Outline the measured head box instead of cropping -- for tuning the two factors above. */
|
|
115
|
+
autoFrameDebug: boolean;
|
|
116
|
+
constructor(modelAssetPath?: string, wasmPath?: string);
|
|
117
|
+
}
|
|
118
|
+
export declare class RBVirtualBackgroundStats {
|
|
119
|
+
/** Frames produced per second (output rate). */
|
|
120
|
+
fps: number;
|
|
121
|
+
/** Frames actually segmented per second. Below fps when throttling is active. */
|
|
122
|
+
segFps: number;
|
|
123
|
+
/** Segmentation rate the throttling aims for. segFps well below it means the machine can't keep up. */
|
|
124
|
+
desiredFps: number;
|
|
125
|
+
/** Mean inference time per segmented frame, in ms. */
|
|
126
|
+
inference: number;
|
|
127
|
+
/** Mean CPU time spent issuing the render pass, per segmented frame, in ms. */
|
|
128
|
+
postProc: number;
|
|
129
|
+
/** Mean time spent squaring the frame before inference (canvas alloc + drawImage), in ms. */
|
|
130
|
+
squaring: number;
|
|
131
|
+
/** Mean wall time between two consecutive inference calls, in ms. */
|
|
132
|
+
interval: number;
|
|
133
|
+
/** The framerate the worker believes the camera delivers -- the source of the throttling. */
|
|
134
|
+
framerate: number;
|
|
135
|
+
}
|
|
136
|
+
export declare class RBVirtualBackground {
|
|
137
|
+
private worker?;
|
|
138
|
+
private workerUrl;
|
|
139
|
+
private settings;
|
|
140
|
+
private trackProcessor?;
|
|
141
|
+
private trackGenerator?;
|
|
142
|
+
private bgVideoData;
|
|
143
|
+
private inputStream?;
|
|
144
|
+
private outputStream?;
|
|
145
|
+
private ackPromiseResolvers;
|
|
146
|
+
private ackPromiseRejecters;
|
|
147
|
+
private ackTimers;
|
|
148
|
+
/** Monotonic counter: a request id must be unique for the life of the instance, randomness is not needed. */
|
|
149
|
+
private ackRequestSeq;
|
|
150
|
+
outputStreamChange: Subject<MediaStream>;
|
|
151
|
+
stats: BehaviorSubject<RBVirtualBackgroundStats>;
|
|
152
|
+
/**
|
|
153
|
+
* Emits the worker's error when segmentation keeps failing: the output track is then still live but carries
|
|
154
|
+
* blank frames, so whoever publishes it must stop -- nothing else in the pipeline reports the failure.
|
|
155
|
+
*/
|
|
156
|
+
processingFailed: Subject<string>;
|
|
157
|
+
private logger;
|
|
158
|
+
private static instance;
|
|
159
|
+
private constructor();
|
|
160
|
+
/**
|
|
161
|
+
* Create the Rainbow VirtualBackground Library singleton
|
|
162
|
+
*/
|
|
163
|
+
static create(workerUrl?: string, modelAssetPath?: string, wasmPath?: string): Promise<RBVirtualBackground>;
|
|
164
|
+
/**
|
|
165
|
+
* Start processing
|
|
166
|
+
*/
|
|
167
|
+
startProcessing(readableStream: ReadableStream, writableStream: WritableStream): Promise<void>;
|
|
168
|
+
/**
|
|
169
|
+
* Stop processing
|
|
170
|
+
*/
|
|
171
|
+
stopProcessing(): Promise<void>;
|
|
172
|
+
/**
|
|
173
|
+
* Set the expected background blurring
|
|
174
|
+
* @param mode - mode (MAXIBLUR, BACKGROUND)
|
|
175
|
+
*/
|
|
176
|
+
setBackgroundBlurring(level: RBVirtualBackgroundBlurringLevel): Promise<void>;
|
|
177
|
+
/**
|
|
178
|
+
* Permits to specify the background image URL
|
|
179
|
+
* @param imageUrl - the image url
|
|
180
|
+
*/
|
|
181
|
+
setBackgroundImage(imageUrl: string): Promise<void>;
|
|
182
|
+
/**
|
|
183
|
+
* Permits to specify the video background url
|
|
184
|
+
* @param videoUrl - the backgroundvideo url
|
|
185
|
+
*/
|
|
186
|
+
setBackgroundVideo(videoUrl: string): Promise<void>;
|
|
187
|
+
/**
|
|
188
|
+
* Permits to specify the video background stream
|
|
189
|
+
* @param stream - the backgroundvideo stream
|
|
190
|
+
*/
|
|
191
|
+
setBackgroundStream(stream: MediaStream): Promise<void>;
|
|
192
|
+
/**
|
|
193
|
+
* Set the expected framerate
|
|
194
|
+
* @param framerate - framerate in fps
|
|
195
|
+
*/
|
|
196
|
+
setFramerate(framerate: number): Promise<void>;
|
|
197
|
+
/**
|
|
198
|
+
* Permits to set the input mediaStream
|
|
199
|
+
* @param stream - The original media stream
|
|
200
|
+
* @returns The modified media stream
|
|
201
|
+
*/
|
|
202
|
+
setInputStream(stream: MediaStream): Promise<MediaStream>;
|
|
203
|
+
/** @internal */
|
|
204
|
+
setSettings(settings?: RBVirtualBackgroundSettings): Promise<void>;
|
|
205
|
+
/**
|
|
206
|
+
* "Recenter me": measure the subject again from where they are now and freeze a new framing.
|
|
207
|
+
* The framing never follows the subject on its own, so this is how it is updated after moving.
|
|
208
|
+
*
|
|
209
|
+
* A no-op at zoom level 0, where there is no crop to recentre.
|
|
210
|
+
*/
|
|
211
|
+
recenter(): Promise<void>;
|
|
212
|
+
/** @internal */
|
|
213
|
+
getSettings(): RBVirtualBackgroundSettings;
|
|
214
|
+
/** @internal */
|
|
215
|
+
getDefaultSettings(): RBVirtualBackgroundSettings;
|
|
216
|
+
private initialise;
|
|
217
|
+
private handlePromiseAck;
|
|
218
|
+
private handleOutputStream;
|
|
219
|
+
private workerAction;
|
|
220
|
+
/** Drop a pending ack and its timer. Safe to call twice. */
|
|
221
|
+
private clearAck;
|
|
222
|
+
private loadImage;
|
|
223
|
+
private imageToPixelData;
|
|
224
|
+
private removeBgVideoElements;
|
|
225
|
+
private removeBgVideoElement;
|
|
226
|
+
private loadBgVideo;
|
|
227
|
+
}
|
|
228
|
+
//# sourceMappingURL=RBVirtualBackground.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RBVirtualBackground.service.d.ts","sourceRoot":"","sources":["../../../src/services/virtualBackground/RBVirtualBackground.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAgBhD;;;;;;;;;GASG;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAO1C,oBAAY,gCAAgC;IACxC,MAAM,WAAW;IACjB,IAAI,SAAS;CAChB;AAED,qBAAa,2BAA2B;IAqIjB,cAAc,CAAC,EAAE,MAAM;IAAS,QAAQ,CAAC,EAAE,MAAM;IAnIpE,UAAU,EAAE,MAAM,CAAO;IACzB,WAAW,EAAE,MAAM,CAAO;IAC1B,SAAS,EAAE,MAAM,CAAM;IAGvB,gBAAgB,EAAE,MAAM,CAAQ;IAChC,iBAAiB,EAAE,MAAM,CAAO;IAChC,SAAS,EAAE,MAAM,EAAE,CAAwB;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setting key holding the JSON-serialized list of the user's personal video
|
|
3
|
+
* background file descriptor ids.
|
|
4
|
+
*
|
|
5
|
+
* @remarks The list is local to the browser: the video files themselves live on
|
|
6
|
+
* the Rainbow file storage, but the mapping "these files are my backgrounds" is
|
|
7
|
+
* not persisted server-side. Clearing the browser storage loses the list without
|
|
8
|
+
* deleting the files, which then stay on the server and keep counting against
|
|
9
|
+
* the user's quota.
|
|
10
|
+
*/
|
|
11
|
+
export declare const PERSONAL_VIDEO_BACKGROUND_IDS_SETTING: string;
|
|
12
|
+
/**
|
|
13
|
+
* Prefix of the stable URI persisted as the selected background.
|
|
14
|
+
*
|
|
15
|
+
* A blob URL cannot be persisted: it dies with the document, so after a reload
|
|
16
|
+
* the background would fall back to black. We store `rainbow-vbg-file://{id}`
|
|
17
|
+
* instead and resolve it to a fresh blob URL when the video is actually wired.
|
|
18
|
+
*/
|
|
19
|
+
export declare const PERSONAL_VIDEO_BACKGROUND_URI_PREFIX: string;
|
|
20
|
+
/** Maximum number of personal video backgrounds a user may store. */
|
|
21
|
+
export declare const MAX_PERSONAL_VIDEO_BACKGROUNDS: number;
|
|
22
|
+
/** Accepted MIME types for a personal video background. */
|
|
23
|
+
export declare const PERSONAL_VIDEO_BACKGROUND_MIME_TYPES: readonly string[];
|
|
24
|
+
/** Maximum accepted file size for a personal video background (20 MB). */
|
|
25
|
+
export declare const MAX_PERSONAL_VIDEO_BACKGROUND_SIZE: number;
|
|
26
|
+
/** A personal video background, as exposed to the GUI. */
|
|
27
|
+
export interface PersonalVideoBackground {
|
|
28
|
+
/** Id of the underlying file descriptor. Also the identity used by the GUI. */
|
|
29
|
+
id: string;
|
|
30
|
+
/** Stable URI to persist as the selected background. Never a blob URL. */
|
|
31
|
+
uri: string;
|
|
32
|
+
/** Object URL of the server-generated snapshot, or `undefined` when unavailable. */
|
|
33
|
+
thumbnail?: string;
|
|
34
|
+
/** Original file name, used as accessible label. */
|
|
35
|
+
name: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Error codes thrown by {@link PersonalVideoBackgroundManager.addVideo}, so the
|
|
39
|
+
* GUI can pick the right toast without parsing a message.
|
|
40
|
+
*/
|
|
41
|
+
export declare enum PersonalVideoBackgroundError {
|
|
42
|
+
TOO_LARGE = "TOO_LARGE",
|
|
43
|
+
UNSUPPORTED_TYPE = "UNSUPPORTED_TYPE",
|
|
44
|
+
UNDECODABLE = "UNDECODABLE",
|
|
45
|
+
NOT_ENOUGH_SPACE = "NOT_ENOUGH_SPACE",
|
|
46
|
+
TOO_MANY = "TOO_MANY"
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Builds the stable URI persisted for a personal video background.
|
|
50
|
+
* @param fileDescriptorId - Id of the file descriptor backing the video.
|
|
51
|
+
*/
|
|
52
|
+
export declare function buildPersonalVideoBackgroundUri(fileDescriptorId: string): string;
|
|
53
|
+
/**
|
|
54
|
+
* Returns true when the given background url is a personal video background URI.
|
|
55
|
+
* Shipped videos keep their plain `/cacheV2/...` path and are left untouched.
|
|
56
|
+
* @param url - The background url to test.
|
|
57
|
+
*/
|
|
58
|
+
export declare function isPersonalVideoBackgroundUri(url: string | undefined): boolean;
|
|
59
|
+
/**
|
|
60
|
+
* Extracts the file descriptor id out of a personal video background URI.
|
|
61
|
+
* @param uri - The URI to parse.
|
|
62
|
+
* @returns The file descriptor id, or `undefined` when the URI is not one of ours.
|
|
63
|
+
*/
|
|
64
|
+
export declare function parsePersonalVideoBackgroundUri(uri: string | undefined): string | undefined;
|
|
65
|
+
/**
|
|
66
|
+
* @module VirtualBackground
|
|
67
|
+
* Manages the user's own video backgrounds: upload to the Rainbow file storage,
|
|
68
|
+
* listing, deletion, and resolution of a stored id into a playable blob URL.
|
|
69
|
+
*
|
|
70
|
+
* @remarks This is a plain helper owned by the virtual background service, not a
|
|
71
|
+
* registered `Service`: it has no lifecycle of its own beyond releasing the
|
|
72
|
+
* object URLs it hands out.
|
|
73
|
+
*/
|
|
74
|
+
export declare class PersonalVideoBackgroundManager {
|
|
75
|
+
private readonly logger;
|
|
76
|
+
private readonly settingsService;
|
|
77
|
+
private readonly contactService;
|
|
78
|
+
private readonly fileStorageService;
|
|
79
|
+
private readonly fileServerService;
|
|
80
|
+
/** Object URLs handed out, by file descriptor id, so they can be revoked. */
|
|
81
|
+
private readonly objectUrls;
|
|
82
|
+
/** Object URLs of the thumbnails currently displayed, by file descriptor id. */
|
|
83
|
+
private readonly thumbnailUrls;
|
|
84
|
+
/**
|
|
85
|
+
* Reads the stored id list.
|
|
86
|
+
* @returns The stored ids, or an empty array when unset or corrupted.
|
|
87
|
+
*/
|
|
88
|
+
getVideoIds(): string[];
|
|
89
|
+
private setVideoIds;
|
|
90
|
+
/**
|
|
91
|
+
* Storage key for the connected user.
|
|
92
|
+
*
|
|
93
|
+
* The list is scoped per user: the ids point at files owned by whoever uploaded them, and
|
|
94
|
+
* the server answers 403 for anybody else. Sharing one key across accounts on the same
|
|
95
|
+
* browser made a second user inherit — and never be able to resolve — the first one's videos.
|
|
96
|
+
*/
|
|
97
|
+
private storageKey;
|
|
98
|
+
/**
|
|
99
|
+
* Reads the stored list, falling back to the legacy unscoped key once so a user who already
|
|
100
|
+
* has videos keeps them, then migrating that value under their own key.
|
|
101
|
+
*/
|
|
102
|
+
private readRawIds;
|
|
103
|
+
/**
|
|
104
|
+
* Uploads a video file and registers it as a personal video background.
|
|
105
|
+
* @param file - The video file picked by the user.
|
|
106
|
+
* @returns The newly created background.
|
|
107
|
+
* @throws {PersonalVideoBackgroundError} When the file is rejected before upload.
|
|
108
|
+
*/
|
|
109
|
+
addVideo(file: File): Promise<PersonalVideoBackground>;
|
|
110
|
+
/**
|
|
111
|
+
* Resolves every stored id into a background descriptor.
|
|
112
|
+
*
|
|
113
|
+
* @remarks Dead ids are tolerated: a file deleted elsewhere, or purged by a
|
|
114
|
+
* quota cleanup, is dropped from the list instead of breaking the whole
|
|
115
|
+
* selector.
|
|
116
|
+
* @returns The backgrounds still resolvable, in stored order.
|
|
117
|
+
*/
|
|
118
|
+
listVideos(): Promise<PersonalVideoBackground[]>;
|
|
119
|
+
/**
|
|
120
|
+
* True while at least one video is still waiting for its server-generated snapshot.
|
|
121
|
+
*
|
|
122
|
+
* The snapshot lands a few seconds after the upload, so the tile shows a placeholder until
|
|
123
|
+
* then and the caller can poll on this.
|
|
124
|
+
*/
|
|
125
|
+
hasPendingThumbnail(): boolean;
|
|
126
|
+
/**
|
|
127
|
+
* Re-reads a video's descriptor from the server, bypassing the cache, and picks up its
|
|
128
|
+
* snapshot if it has been generated since.
|
|
129
|
+
* @param id - Id of the file descriptor to refresh.
|
|
130
|
+
* @returns True when a thumbnail is now available.
|
|
131
|
+
*/
|
|
132
|
+
refreshThumbnail(id: string): Promise<boolean>;
|
|
133
|
+
/**
|
|
134
|
+
* Same as {@link listVideos}, plus whether some ids could not be resolved for a reason that
|
|
135
|
+
* may fix itself — which tells the caller it is worth trying again.
|
|
136
|
+
*/
|
|
137
|
+
listVideosWithStatus(): Promise<{
|
|
138
|
+
videos: PersonalVideoBackground[];
|
|
139
|
+
hasTransientFailure: boolean;
|
|
140
|
+
}>;
|
|
141
|
+
/**
|
|
142
|
+
* Deletes a personal video background, server-side and from the local list.
|
|
143
|
+
*
|
|
144
|
+
* @remarks The id is dropped from the list even when the server call fails,
|
|
145
|
+
* otherwise a file already gone would stay stuck in the selector forever.
|
|
146
|
+
* @param id - Id of the file descriptor to delete.
|
|
147
|
+
*/
|
|
148
|
+
deleteVideo(id: string): Promise<void>;
|
|
149
|
+
/**
|
|
150
|
+
* Downloads a personal video background and exposes it as a playable blob URL.
|
|
151
|
+
*
|
|
152
|
+
* @remarks The returned URL is cached per id and revoked by {@link release}
|
|
153
|
+
* or {@link cleanUp}: an unreleased object URL pins the whole video in memory.
|
|
154
|
+
* @param id - Id of the file descriptor to resolve.
|
|
155
|
+
* @returns The blob URL, or `undefined` when the file no longer resolves.
|
|
156
|
+
*/
|
|
157
|
+
getVideoUrl(id: string): Promise<string | undefined>;
|
|
158
|
+
/**
|
|
159
|
+
* Resolves a background url into something playable.
|
|
160
|
+
* @param url - Either a personal video URI, or a plain url left untouched.
|
|
161
|
+
* @returns The resolved url, or `undefined` when a personal video is gone.
|
|
162
|
+
*/
|
|
163
|
+
resolveBackgroundUrl(url: string): Promise<string | undefined>;
|
|
164
|
+
/**
|
|
165
|
+
* Revokes the object URLs held for one background.
|
|
166
|
+
* @param id - Id of the file descriptor to release.
|
|
167
|
+
*/
|
|
168
|
+
release(id: string): void;
|
|
169
|
+
/** Revokes every object URL handed out so far. */
|
|
170
|
+
cleanUp(): void;
|
|
171
|
+
/**
|
|
172
|
+
* Checks the browser can actually decode the file, by loading its metadata
|
|
173
|
+
* in a detached `<video>` element.
|
|
174
|
+
* @param file - The file to probe.
|
|
175
|
+
*/
|
|
176
|
+
private isDecodable;
|
|
177
|
+
/**
|
|
178
|
+
* Maps a file descriptor to the shape the GUI consumes, resolving its
|
|
179
|
+
* server-generated snapshot when one is available.
|
|
180
|
+
* @param fileDescriptor - The descriptor to map.
|
|
181
|
+
*/
|
|
182
|
+
private toPersonalVideoBackground;
|
|
183
|
+
/**
|
|
184
|
+
* Resolves the snapshot the server generates when a video is uploaded.
|
|
185
|
+
* @param fileDescriptor - The descriptor whose thumbnail is wanted.
|
|
186
|
+
* @returns An object URL, or `undefined` when no snapshot is available yet.
|
|
187
|
+
*/
|
|
188
|
+
private getThumbnailUrl;
|
|
189
|
+
}
|
|
190
|
+
//# sourceMappingURL=personalVideoBackground.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"personalVideoBackground.d.ts","sourceRoot":"","sources":["../../../src/services/virtualBackground/personalVideoBackground.ts"],"names":[],"mappings":"AAQA;;;;;;;;;GASG;AACH,eAAO,MAAM,qCAAqC,EAAE,MAAqC,CAAC;AAE1F;;;;;;GAMG;AACH,eAAO,MAAM,oCAAoC,EAAE,MAA8B,CAAC;AAElF,qEAAqE;AACrE,eAAO,MAAM,8BAA8B,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AAM,EAAE;IAa9B,OAAO,CAAC,WAAW;IASnB;;;;;;OAMG;IACH,OAAO,CAAC,UAAU;IAKlB;;;OAGG;IACH,OAAO,CAAC,UAAU;IAyBlB;;;;;OAKG;IACU,QAAQ,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,uBAAuB,CAAC;IA2BnE;;;;;;;OAOG;IACU,UAAU,IAAI,OAAO,CAAC,uBAAuB,EAAE,CAAC;IAK7D;;;;;OAKG;IACI,mBAAmB,IAAI,OAAO;IAIrC;;;;;OAKG;IACU,gBAAgB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAS3D;;;OAGG;IACU,oBAAoB,IAAI,OAAO,CAAC;QAAE,MAAM,EAAE,uBAAuB,EAAE,CAAC;QAAC,mBAAmB,EAAE,OAAO,CAAC;KAAE,CAAC;IA8BlH;;;;;;OAMG;IACU,WAAW,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAWnD;;;;;;;OAOG;IACU,WAAW,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;IAiBjE;;;;OAIG;IACU,oBAAoB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;IAK3E;;;OAGG;IACI,OAAO,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI;IAOhC,kDAAkD;IAC3C,OAAO,IAAI,IAAI;IAQtB;;;;OAIG;YACW,WAAW;IAkBzB;;;;OAIG;YACW,yBAAyB;IASvC;;;;OAIG;YACW,eAAe;CAehC"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import type { IVideoPipeline } from "../../../../services/virtualBackground/virtualBackground.service";
|
|
2
|
+
export declare class Canvas2DPipeline implements IVideoPipeline {
|
|
3
|
+
private vbService;
|
|
4
|
+
private logger;
|
|
5
|
+
private segmentationPixelCount;
|
|
6
|
+
private tflite;
|
|
7
|
+
private segmentationMaskCtx;
|
|
8
|
+
private segmentationMask;
|
|
9
|
+
private outputCanvasCtx;
|
|
10
|
+
private segmentationMaskCanvas;
|
|
11
|
+
maskFrameTimerWorker: Worker;
|
|
12
|
+
virtualImage: CanvasImageSource;
|
|
13
|
+
virtualVideo: CanvasImageSource;
|
|
14
|
+
/**
|
|
15
|
+
* @function create
|
|
16
|
+
* @static
|
|
17
|
+
* @public
|
|
18
|
+
* @returns {Canvas2DPipeline} Initialization of the class
|
|
19
|
+
*/
|
|
20
|
+
static create(virtualBackgroundService: any): Canvas2DPipeline;
|
|
21
|
+
private constructor();
|
|
22
|
+
/**
|
|
23
|
+
* @function init
|
|
24
|
+
* @public
|
|
25
|
+
* @async
|
|
26
|
+
* @description Retrieve the image or video to be used as a background
|
|
27
|
+
*/
|
|
28
|
+
init(): Promise<any>;
|
|
29
|
+
private loadImage;
|
|
30
|
+
/**
|
|
31
|
+
* @function render
|
|
32
|
+
* @public
|
|
33
|
+
* @async
|
|
34
|
+
* @description Calls the different methods to create the virtual background
|
|
35
|
+
*/
|
|
36
|
+
render(): Promise<void>;
|
|
37
|
+
updatePostProcessingConfig(): void;
|
|
38
|
+
/**
|
|
39
|
+
* @function cleanUp
|
|
40
|
+
* @public
|
|
41
|
+
* @description deletes the canvas created for the mask
|
|
42
|
+
*/
|
|
43
|
+
cleanUp(): void;
|
|
44
|
+
/** **************************************************************************/
|
|
45
|
+
/** PUBLIC STUFF **/
|
|
46
|
+
/** **************************************************************************/
|
|
47
|
+
/**
|
|
48
|
+
* @function runPreProcessing
|
|
49
|
+
* @private
|
|
50
|
+
* @description Resize the mask and send the data to tflite
|
|
51
|
+
*/
|
|
52
|
+
private runPreProcessing;
|
|
53
|
+
/**
|
|
54
|
+
* @function runInference
|
|
55
|
+
* @private
|
|
56
|
+
* @description Recovery of the AI data and application of the softMax equiation to create the mask
|
|
57
|
+
*/
|
|
58
|
+
private runInference;
|
|
59
|
+
/**
|
|
60
|
+
* @function runPostProcessing
|
|
61
|
+
* @private
|
|
62
|
+
* @description Finalization of the virtual background
|
|
63
|
+
*/
|
|
64
|
+
private runPostProcessing;
|
|
65
|
+
}
|
|
66
|
+
//# sourceMappingURL=canvas2DPipeline.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"canvas2DPipeline.d.ts","sourceRoot":"","sources":["../../../../../src/services/virtualBackground/pipeline/canvas2D/canvas2DPipeline.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2EAA2E,CAAC;AAIhH,qBAAa,gBAAiB,YAAW,cAAc;IACnD,OAAO,CAAC,SAAS,CAAM;IACvB,OAAO,CAAC,MAAM,CAA8C;IAC5D,OAAO,CAAC,sBAAsB,CAAS;IACvC,OAAO,CAAC,MAAM,CAAM;IACpB,OAAO,CAAC,mBAAmB,CAA2B;IACtD,OAAO,CAAC,gBAAgB,CAAM;IAC9B,OAAO,CAAC,eAAe,CAA2B;IAClD,OAAO,CAAC,sBAAsB,CAAoB;IAE3C,oBAAoB,EAAE,MAAM,CAAC;IAC7B,YAAY,EAAE,iBAAiB,CAAC;IAChC,YAAY,EAAE,iBAAiB,CAAC;IAEvC;;;;;OAKG;WACW,MAAM,CAAC,wBAAwB,EAAE,GAAG,GAAG,gBAAgB;IAIrE,OAAO;IAIP;;;;;OAKG;IACU,IAAI,IAAI,OAAO,CAAC,GAAG,CAAC;IAiCjC,OAAO,CAAC,SAAS;IAUjB;;;;;OAKG;IACU,MAAM;IAUZ,0BAA0B;IAEjC;;;;OAIG;IACI,OAAO;IAId,+EAA+E;IAC/E,8EAA8E;IAC9E,+EAA+E;IAE/E;;;;OAIG;IACH,OAAO,CAAC,gBAAgB;IAWxB;;;;OAIG;IACH,OAAO,CAAC,YAAY;IAiBpB;;;;OAIG;IACH,OAAO,CAAC,iBAAiB;CA0B5B"}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import type { Webgl2Pipeline } from "../../../../services/virtualBackground/pipeline/webgl2/webgl2Pipeline";
|
|
2
|
+
export interface BackgroundBlurStage {
|
|
3
|
+
render: () => void;
|
|
4
|
+
updateCoverage: (coverage: [number, number]) => void;
|
|
5
|
+
cleanUp: () => void;
|
|
6
|
+
}
|
|
7
|
+
export declare class BlurStage {
|
|
8
|
+
private blur;
|
|
9
|
+
private blend;
|
|
10
|
+
/**
|
|
11
|
+
* @function create
|
|
12
|
+
* @static
|
|
13
|
+
* @public
|
|
14
|
+
* @param {Options} options The options (type and url) of the image or the video
|
|
15
|
+
* @param {Webgl2Pipeline} vbWebgl2 The instance of the webgl2 class
|
|
16
|
+
* @returns {BlurStage | null} Initialization of the class
|
|
17
|
+
*/
|
|
18
|
+
static create(options: any, vbWebgl2: Webgl2Pipeline): BlurStage;
|
|
19
|
+
private constructor();
|
|
20
|
+
/** **************************************************************************/
|
|
21
|
+
/** PUBLIC STUFF **/
|
|
22
|
+
/** **************************************************************************/
|
|
23
|
+
/** **************************************************************************/
|
|
24
|
+
/** PRIVATE STUFF **/
|
|
25
|
+
/** **************************************************************************/
|
|
26
|
+
render(): void;
|
|
27
|
+
updateCoverage(coverage: [number, number]): void;
|
|
28
|
+
cleanUp(): void;
|
|
29
|
+
}
|
|
30
|
+
export declare class BlurPass {
|
|
31
|
+
private vbHelper;
|
|
32
|
+
private vbWebgl2;
|
|
33
|
+
program: any;
|
|
34
|
+
private outputWidth;
|
|
35
|
+
private outputHeight;
|
|
36
|
+
private inputFrameLocation;
|
|
37
|
+
private personMaskLocation;
|
|
38
|
+
private texelSizeLocation;
|
|
39
|
+
private texelHeight;
|
|
40
|
+
private texelWidth;
|
|
41
|
+
private texture1;
|
|
42
|
+
private texture2;
|
|
43
|
+
private frameBuffer1;
|
|
44
|
+
private frameBuffer2;
|
|
45
|
+
private fragmentShaderBlur;
|
|
46
|
+
private gl;
|
|
47
|
+
private options;
|
|
48
|
+
constructor(vbWebgl2: Webgl2Pipeline, options: any);
|
|
49
|
+
/**
|
|
50
|
+
* @function render
|
|
51
|
+
* @public
|
|
52
|
+
*/
|
|
53
|
+
render(): void;
|
|
54
|
+
/**
|
|
55
|
+
* @function cleanUp
|
|
56
|
+
* @public
|
|
57
|
+
* @description removes the different components used to make the assembly with the blurring of the environment
|
|
58
|
+
*/
|
|
59
|
+
cleanUp(): void;
|
|
60
|
+
}
|
|
61
|
+
export declare class BlendPass {
|
|
62
|
+
private vbWebgl2;
|
|
63
|
+
private vbHelper;
|
|
64
|
+
private vertexShaderBlend;
|
|
65
|
+
private fragmentShaderBlend;
|
|
66
|
+
private program;
|
|
67
|
+
private coverageLocation;
|
|
68
|
+
private gl;
|
|
69
|
+
constructor(vbWebgl2: Webgl2Pipeline);
|
|
70
|
+
/**
|
|
71
|
+
* @function render
|
|
72
|
+
* @public
|
|
73
|
+
*/
|
|
74
|
+
render(): void;
|
|
75
|
+
/**
|
|
76
|
+
* @function updateCoverage
|
|
77
|
+
* @public
|
|
78
|
+
* @param {[number, number]} coverage
|
|
79
|
+
*/
|
|
80
|
+
updateCoverage(coverage: [number, number]): void;
|
|
81
|
+
/**
|
|
82
|
+
* @function cleanUp
|
|
83
|
+
* @public
|
|
84
|
+
* @description removes the different components used to make the assembly with the blurring of the environment
|
|
85
|
+
*/
|
|
86
|
+
cleanUp(): void;
|
|
87
|
+
}
|
|
88
|
+
//# sourceMappingURL=blurStage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blurStage.d.ts","sourceRoot":"","sources":["../../../../../src/services/virtualBackground/pipeline/webgl2/blurStage.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gFAAgF,CAAC;AAGrH,MAAM,WAAW,mBAAmB;IAChC,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,cAAc,EAAE,CAAC,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,IAAI,CAAC;IACrD,OAAO,EAAE,MAAM,IAAI,CAAC;CACvB;AAED,qBAAa,SAAS;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,CAAuB;IAC/C,OAAO,CAAC,EAAE,CAAyB;gBAEvB,QAAQ,EAAE,cAAc;IAuDpC;;;OAGG;IACI,MAAM;IASb;;;;OAIG;IACI,cAAc,CAAC,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;IAKhD;;;;OAIG;IACI,OAAO;CAQjB"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import type { Webgl2Pipeline } from "./webgl2Pipeline";
|
|
2
|
+
export declare class ImageStage {
|
|
3
|
+
private vbWebgl2;
|
|
4
|
+
private vbHelper;
|
|
5
|
+
private vertexShaderImage;
|
|
6
|
+
private fragmentShaderImage;
|
|
7
|
+
private program;
|
|
8
|
+
private backgroundTexture;
|
|
9
|
+
private outputRatio;
|
|
10
|
+
private backgroundLocation;
|
|
11
|
+
private backgroundScaleLocation;
|
|
12
|
+
private backgroundOffsetLocation;
|
|
13
|
+
private coverageLocation;
|
|
14
|
+
private lightWrappingLocation;
|
|
15
|
+
private blendModeLocation;
|
|
16
|
+
private gl;
|
|
17
|
+
private video;
|
|
18
|
+
private options;
|
|
19
|
+
/**
|
|
20
|
+
* @function create
|
|
21
|
+
* @static
|
|
22
|
+
* @public
|
|
23
|
+
* @param {Options} options The options (type and url) of the image or the video
|
|
24
|
+
* @param {Webgl2Pipeline} vbWebgl2 The instance of the webgl2 class
|
|
25
|
+
* @returns {ImageStage | null} Initialization of the class
|
|
26
|
+
*/
|
|
27
|
+
static create(options: any, vbWebgl2: Webgl2Pipeline): Promise<ImageStage | null>;
|
|
28
|
+
private constructor();
|
|
29
|
+
/**
|
|
30
|
+
* @function render
|
|
31
|
+
* @public
|
|
32
|
+
* @description Assembles the mask with the person's video stream and the virtual background image
|
|
33
|
+
*/
|
|
34
|
+
render(): void;
|
|
35
|
+
/**
|
|
36
|
+
* @function updateCoverage
|
|
37
|
+
* @public
|
|
38
|
+
* @param {[number, number]} coverage
|
|
39
|
+
*/
|
|
40
|
+
updateCoverage(coverage: [number, number]): void;
|
|
41
|
+
/**
|
|
42
|
+
* @function updateLightWrapping
|
|
43
|
+
* @public
|
|
44
|
+
* @param {number} lightWrapping The lightWrapping parameter
|
|
45
|
+
* @description Light wrapping is a compositing technique designed to blend keyed out green screen footage with a background plate
|
|
46
|
+
*/
|
|
47
|
+
updateLightWrapping(lightWrapping: number): void;
|
|
48
|
+
/**
|
|
49
|
+
* @function updateBlendMode
|
|
50
|
+
* @public
|
|
51
|
+
* @param {BlendMode} blendMode The mode that will apply
|
|
52
|
+
* @description determines how the two layers will be blended together.
|
|
53
|
+
*/
|
|
54
|
+
updateBlendMode(blendMode: number): void;
|
|
55
|
+
/**
|
|
56
|
+
* @function cleanUp
|
|
57
|
+
* @public
|
|
58
|
+
* @description removes the different components used to make the assembly with the image
|
|
59
|
+
*/
|
|
60
|
+
cleanUp(): void;
|
|
61
|
+
/**
|
|
62
|
+
* @function updateBackgroundImage
|
|
63
|
+
* @public
|
|
64
|
+
* @param {any} background An HTMLLImageElement or HTMLVideoElement that contains the virtual background that will be placed behind the person
|
|
65
|
+
* @description Resize the virtual background to the right size
|
|
66
|
+
*/
|
|
67
|
+
updateBackgroundImage(background: any): void;
|
|
68
|
+
}
|
|
69
|
+
//# sourceMappingURL=imageStage.d.ts.map
|