зеркало из
1
0
Форкнуть 0

Add extra bundle for enable video effect

This commit is contained in:
Porter Nan 2024-07-16 21:20:53 +00:00
Родитель c5c65c7b3f
Коммит 3e1ea7c59f
3 изменённых файлов: 13 добавлений и 2 удалений

Просмотреть файл

@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<head>
<meta charset="utf-8" />
@ -16,6 +16,7 @@
<div id="call-composite-container"></div>
<!-- replace with https://github.com/Azure/communication-ui-library/releases/latest/download/callComposite.js for development and prototyping -->
<script src="./callComposite.js"></script>
<script src="./videoEffectDependency.js"></script>
<script src="./service.js"></script>
<script type="module">
const testParams = service.loadConfigFromUrlQuery();
@ -31,7 +32,10 @@
userId: user,
token: token,
displayName: displayName,
locator: { groupId: groupId } // Provide any GUID to join a group
locator: { groupId: groupId }, // Provide any GUID to join a group
options: {
videoBackgroundOptions: { onResolveDependency: videoEffectDependency.onResolveVideoEffectDependency }
}
},
document.getElementById('call-composite-container')
);

Просмотреть файл

@ -0,0 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import { onResolveVideoEffectDependency } from '@azure/communication-react';
export { onResolveVideoEffectDependency };

Просмотреть файл

@ -9,6 +9,7 @@ const config = {
callComposite: './src/callComposite.js',
outboundCallComposite: './src/outboundCallComposite.js',
callWithChatComposite: './src/callWithChatComposite.js',
videoEffectDependency: './src/videoEffectDependency.js',
service: './src/service.js'
},
mode: 'development', // change to 'production' for optimization