mediasfu-shared 1.0.1 → 1.0.3
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/LICENSE +21 -21
- package/README.md +103 -222
- package/dist/index.cjs +7634 -2180
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +4203 -273
- package/dist/index.js +7663 -2209
- package/dist/index.js.map +1 -1
- package/package.json +96 -78
- package/src/ProducerClient/producerClientEmits/joinRoomClient.ts +57 -0
- package/src/ProducerClient/producerClientEmits/updateRoomParametersClient.ts +401 -0
- package/src/consumers/addVideosGrid.ts +3 -2
- package/src/consumers/changeVids.ts +111 -41
- package/src/consumers/checkPermission.ts +35 -1
- package/src/consumers/connectIps.ts +3 -1
- package/src/consumers/connectLocalIps.ts +3 -1
- package/src/consumers/connectRecvTransport.ts +96 -1
- package/src/consumers/consumerResume.ts +2 -2
- package/src/consumers/dispStreams.ts +83 -37
- package/src/consumers/frameworkConsumerContract.ts +6 -0
- package/src/consumers/generatePageContent.ts +24 -10
- package/src/consumers/getPipedProducersAlt.ts +112 -16
- package/src/consumers/gridLayout/addVideosGrid.engine.ts +42 -0
- package/src/consumers/gridLayout/prepopulateUserMedia.engine.ts +444 -0
- package/src/consumers/mixStreams.ts +45 -14
- package/src/consumers/onScreenChanges.ts +25 -10
- package/src/consumers/prepopulateUserMedia.ts +3 -2
- package/src/consumers/processConsumerTransports.ts +68 -23
- package/src/consumers/processConsumerTransportsAudio.ts +146 -17
- package/src/consumers/reUpdateInter.ts +61 -21
- package/src/consumers/readjust.ts +30 -14
- package/src/consumers/reorderStreams.ts +76 -42
- package/src/consumers/resumePauseAudioStreams.ts +66 -17
- package/src/consumers/resumePauseStreams.ts +53 -10
- package/src/consumers/socketReceiveMethods/joinConsumeRoom.ts +8 -0
- package/src/consumers/socketReceiveMethods/newPipeProducer.ts +114 -0
- package/src/consumers/socketReceiveMethods/producerClosed.ts +13 -0
- package/src/consumers/streamSuccessScreen.ts +2 -2
- package/src/consumers/streamSuccessVideo.ts +5 -0
- package/src/consumers/translationConsumerSwitch.ts +321 -0
- package/src/index.ts +85 -1
- package/src/methods/coHostMethods/modifyCoHostSettings.ts +9 -9
- package/src/methods/displaySettings/modifyDisplaySettings.ts +5 -0
- package/src/methods/index.ts +66 -0
- package/src/methods/message/sendMessage.ts +12 -29
- package/src/methods/panelists/focusPanelists.ts +83 -0
- package/src/methods/panelists/index.ts +3 -0
- package/src/methods/panelists/launchPanelists.ts +13 -0
- package/src/methods/panelists/updatePanelists.ts +135 -0
- package/src/methods/permissions/index.ts +3 -0
- package/src/methods/permissions/launchPermissions.ts +13 -0
- package/src/methods/permissions/updateParticipantPermission.ts +127 -0
- package/src/methods/permissions/updatePermissionConfig.ts +52 -0
- package/src/methods/polls/pollUpdated.ts +88 -0
- package/src/methods/recording/confirmRecording.ts +15 -12
- package/src/methods/recording/recordResumeTimer.ts +2 -2
- package/src/methods/recording/recordStartTimer.ts +2 -2
- package/src/methods/recording/timeLeftRecording.ts +25 -0
- package/src/methods/requests/hostRequestResponse.ts +158 -0
- package/src/methods/settings/modifySettings.ts +17 -17
- package/src/methods/socketReceive/allMembers.ts +450 -0
- package/src/methods/socketReceive/allMembersRest.ts +480 -0
- package/src/methods/socketReceive/allWaitingRoomMembers.ts +35 -0
- package/src/methods/socketReceive/banParticipant.ts +73 -0
- package/src/methods/socketReceive/controlMediaHost.ts +280 -0
- package/src/methods/socketReceive/disconnect.ts +40 -0
- package/src/methods/socketReceive/disconnectUserSelf.ts +56 -0
- package/src/methods/socketReceive/getDomains.ts +112 -0
- package/src/methods/socketReceive/meetingEnded.ts +49 -0
- package/src/methods/socketReceive/meetingStillThere.ts +26 -0
- package/src/methods/socketReceive/panelistReceiveMethods.ts +195 -0
- package/src/methods/socketReceive/participantRequested.ts +48 -0
- package/src/methods/socketReceive/permissionReceiveMethods.ts +59 -0
- package/src/methods/socketReceive/personJoined.ts +35 -0
- package/src/methods/socketReceive/producerMediaClosed.ts +223 -0
- package/src/methods/socketReceive/producerMediaPaused.ts +267 -0
- package/src/methods/socketReceive/producerMediaResumed.ts +157 -0
- package/src/methods/socketReceive/reInitiateRecording.ts +53 -0
- package/src/methods/socketReceive/receiveMessage.ts +117 -0
- package/src/methods/socketReceive/recordingNotice.ts +286 -0
- package/src/methods/socketReceive/roomRecordParams.ts +122 -0
- package/src/methods/socketReceive/screenProducerId.ts +61 -0
- package/src/methods/socketReceive/startRecords.ts +46 -0
- package/src/methods/socketReceive/stoppedRecording.ts +44 -0
- package/src/methods/socketReceive/translationReceiveMethods.ts +581 -0
- package/src/methods/socketReceive/updateConsumingDomains.ts +128 -0
- package/src/methods/socketReceive/updateMediaSettings.ts +45 -0
- package/src/methods/socketReceive/updatedCoHost.ts +75 -0
- package/src/methods/socketReceive/userWaiting.ts +45 -0
- package/src/methods/stream/clickAudio.ts +380 -0
- package/src/methods/stream/clickChat.ts +36 -0
- package/src/methods/stream/clickScreenShare.ts +173 -0
- package/src/methods/stream/clickVideo.ts +28 -6
- package/src/methods/stream/index.ts +1 -0
- package/src/methods/utils/SoundPlayer.ts +31 -0
- package/src/methods/utils/checkLimitsAndMakeRequest.ts +156 -2
- package/src/methods/utils/createResponseJoinRoom.ts +47 -0
- package/src/methods/utils/createRoomOnMediaSFU.ts +160 -0
- package/src/methods/utils/formatNumber.ts +42 -0
- package/src/methods/utils/generateRandomMessages.ts +70 -0
- package/src/methods/utils/generateRandomParticipants.ts +100 -0
- package/src/methods/utils/generateRandomPolls.ts +43 -0
- package/src/methods/utils/generateRandomRequestList.ts +51 -0
- package/src/methods/utils/generateRandomWaitingRoomList.ts +17 -0
- package/src/methods/utils/getModalPosition.ts +23 -0
- package/src/methods/utils/getOverlayPosition.ts +37 -0
- package/src/methods/utils/initialValuesState.ts +405 -0
- package/src/methods/utils/joinRoomOnMediaSFU.ts +124 -0
- package/src/methods/utils/liveSubtitle.ts +107 -0
- package/src/methods/utils/meetingTimeRemaining.ts +33 -0
- package/src/methods/utils/meetingTimer/startMeetingProgressTimer.ts +72 -0
- package/src/methods/utils/producer/aParams.ts +10 -0
- package/src/methods/utils/producer/hParams.ts +26 -0
- package/src/methods/utils/producer/screenParams.ts +13 -0
- package/src/methods/utils/producer/vParams.ts +26 -0
- package/src/methods/utils/producer/videoCaptureConstraints.ts +65 -0
- package/src/methods/utils/resolveMediaSFURoomApi.ts +28 -0
- package/src/methods/utils/sleep.ts +24 -0
- package/src/methods/utils/translationLanguages.ts +308 -0
- package/src/methods/utils/webrtc.ts +44 -0
- package/src/methods/welcome/handleWelcomeRequest.ts +11 -2
- package/src/methods/welcome/index.ts +5 -1
- package/src/methods/whiteboard/captureCanvasStream.ts +128 -0
- package/src/producers/producerEmits/joinConRoom.ts +2 -2
- package/src/producers/producerEmits/joinLocalRoom.ts +240 -0
- package/src/producers/producerEmits/joinRoom.ts +129 -0
- package/src/types/shared-base-types.ts +14 -3
- package/src/types/types.ts +255 -0
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2025 MediaSFU
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 MediaSFU
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,222 +1,103 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
// Create SocketManager instance
|
|
105
|
-
const socketManager = new SocketManager({ socket });
|
|
106
|
-
```
|
|
107
|
-
|
|
108
|
-
### Using Consumers
|
|
109
|
-
|
|
110
|
-
```typescript
|
|
111
|
-
import {
|
|
112
|
-
consumerResume,
|
|
113
|
-
addVideosGrid,
|
|
114
|
-
prepopulateUserMedia
|
|
115
|
-
} from 'mediasfu-shared';
|
|
116
|
-
|
|
117
|
-
// Resume a paused consumer
|
|
118
|
-
await consumerResume({
|
|
119
|
-
id: 'consumer-id',
|
|
120
|
-
parameters: roomParameters,
|
|
121
|
-
socket: socketManager.socket
|
|
122
|
-
});
|
|
123
|
-
|
|
124
|
-
// Add video streams to grid
|
|
125
|
-
await addVideosGrid({
|
|
126
|
-
consumers: activeConsumers,
|
|
127
|
-
parameters: roomParameters
|
|
128
|
-
});
|
|
129
|
-
```
|
|
130
|
-
|
|
131
|
-
### Type Definitions
|
|
132
|
-
|
|
133
|
-
```typescript
|
|
134
|
-
import type {
|
|
135
|
-
Participant,
|
|
136
|
-
Transport,
|
|
137
|
-
Stream,
|
|
138
|
-
EventType,
|
|
139
|
-
ShowAlert,
|
|
140
|
-
CoHostResponsibility,
|
|
141
|
-
Settings
|
|
142
|
-
} from 'mediasfu-shared';
|
|
143
|
-
|
|
144
|
-
const participant: Participant = {
|
|
145
|
-
id: 'participant-123',
|
|
146
|
-
name: 'John Doe',
|
|
147
|
-
audioID: 'audio-stream-id',
|
|
148
|
-
videoID: 'video-stream-id',
|
|
149
|
-
islevel: '1'
|
|
150
|
-
};
|
|
151
|
-
```
|
|
152
|
-
|
|
153
|
-
## 🏗️ Package Structure
|
|
154
|
-
|
|
155
|
-
```
|
|
156
|
-
mediasfu-shared/
|
|
157
|
-
├── consumers/ # WebRTC consumer management
|
|
158
|
-
│ ├── addVideosGrid
|
|
159
|
-
│ ├── consumerResume
|
|
160
|
-
│ └── prepopulateUserMedia
|
|
161
|
-
├── methods/ # Core functionality methods
|
|
162
|
-
│ ├── breakoutRoomsMethods/
|
|
163
|
-
│ ├── recordingMethods/
|
|
164
|
-
│ ├── participantsMethods/
|
|
165
|
-
│ ├── messageMethods/
|
|
166
|
-
│ ├── mediaMethods/
|
|
167
|
-
│ └── utils/
|
|
168
|
-
├── producers/ # Producer client implementations
|
|
169
|
-
├── sockets/ # Socket.io management
|
|
170
|
-
├── types/ # TypeScript type definitions
|
|
171
|
-
└── index.ts # Main entry point
|
|
172
|
-
```
|
|
173
|
-
|
|
174
|
-
## 📚 Documentation
|
|
175
|
-
|
|
176
|
-
For detailed documentation on specific methods and types, please visit:
|
|
177
|
-
|
|
178
|
-
- **Main Documentation**: [https://mediasfu.com/documentation](https://mediasfu.com/documentation)
|
|
179
|
-
- **API Reference**: [https://mediasfu.com/docs](https://mediasfu.com/docs)
|
|
180
|
-
- **React SDK**: [mediasfu-reactjs](https://www.npmjs.com/package/mediasfu-reactjs)
|
|
181
|
-
- **Vue SDK**: [mediasfu-vue](https://www.npmjs.com/package/mediasfu-vue)
|
|
182
|
-
|
|
183
|
-
## 🔗 Related Packages
|
|
184
|
-
|
|
185
|
-
`mediasfu-shared` is used by all MediaSFU framework-specific packages:
|
|
186
|
-
|
|
187
|
-
- **[mediasfu-reactjs](https://www.npmjs.com/package/mediasfu-reactjs)** - React components and hooks
|
|
188
|
-
- **[mediasfu-vue](https://www.npmjs.com/package/mediasfu-vue)** - Vue 3 components and composables
|
|
189
|
-
- **[mediasfu-angular](https://www.npmjs.com/package/mediasfu-angular)** - Angular components and services
|
|
190
|
-
|
|
191
|
-
## 🤝 Integration with MediaSFU Community Edition (CE)
|
|
192
|
-
|
|
193
|
-
This package is designed to work seamlessly with [MediaSFU CE](https://github.com/MediaSFU/MediaSFUOpen), our open-source community edition server. MediaSFU CE provides:
|
|
194
|
-
|
|
195
|
-
- Complete WebRTC SFU server implementation
|
|
196
|
-
- Recording and streaming capabilities
|
|
197
|
-
- Breakout rooms and advanced features
|
|
198
|
-
- Free for self-hosting
|
|
199
|
-
|
|
200
|
-
## 💬 Support
|
|
201
|
-
|
|
202
|
-
Need help? We're here for you!
|
|
203
|
-
|
|
204
|
-
- **GitHub Issues**: [Report bugs or request features](https://github.com/MediaSFU/MediaSFU-Shared/issues)
|
|
205
|
-
- **Email Support**: info@mediasfu.com
|
|
206
|
-
|
|
207
|
-
## 📄 License
|
|
208
|
-
|
|
209
|
-
This project is licensed under the **MIT License** - see the [LICENSE](LICENSE) file for details.
|
|
210
|
-
|
|
211
|
-
---
|
|
212
|
-
|
|
213
|
-
<p align="center">
|
|
214
|
-
Made with ❤️ by the <a href="https://mediasfu.com">MediaSFU</a> Team
|
|
215
|
-
</p>
|
|
216
|
-
|
|
217
|
-
<p align="center">
|
|
218
|
-
<a href="https://mediasfu.com">Website</a> •
|
|
219
|
-
<a href="https://twitter.com/media_sfu">Twitter</a> •
|
|
220
|
-
<a href="https://github.com/MediaSFU">GitHub</a> •
|
|
221
|
-
<a href="https://www.linkedin.com/company/mediasfu">LinkedIn</a>
|
|
222
|
-
</p>
|
|
1
|
+
# mediasfu-shared
|
|
2
|
+
|
|
3
|
+
`mediasfu-shared` is the framework-agnostic MediaSFU runtime package. It exposes the shared room helpers, mediasoup/socket flows, state utilities, and TypeScript types used by the MediaSFU SDK family.
|
|
4
|
+
|
|
5
|
+
## When To Use This Package
|
|
6
|
+
|
|
7
|
+
Use `mediasfu-shared` when you want to:
|
|
8
|
+
|
|
9
|
+
- build your own browser client on top of MediaSFU primitives without adopting a framework-specific UI package
|
|
10
|
+
- share MediaSFU room, media, and participant logic across React, Vue, Angular, Svelte, or plain TypeScript codebases
|
|
11
|
+
- import low-level helpers such as `createRoomOnMediaSFU`, `joinRoomOnMediaSFU`, `connectSocket`, `SocketManager`, and the exported consumers, methods, and types entry points
|
|
12
|
+
|
|
13
|
+
## Installation
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
npm install mediasfu-shared mediasoup-client socket.io-client
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
`mediasoup-client` and `socket.io-client` are peer dependencies, so install them in the host app.
|
|
20
|
+
|
|
21
|
+
## Backend Requirement
|
|
22
|
+
|
|
23
|
+
The cloud room helpers in this package target `https://mediasfu.com/v1/rooms/` by default.
|
|
24
|
+
|
|
25
|
+
- Use MediaSFU Cloud when you want managed room creation, signaling, and media routing. Pass `apiUserName` and `apiKey`.
|
|
26
|
+
- Use MediaSFU Open / Community Edition when you self-host. Pass a non-MediaSFU `localLink` such as `http://localhost:3000`.
|
|
27
|
+
|
|
28
|
+
## Quick Example
|
|
29
|
+
|
|
30
|
+
```ts
|
|
31
|
+
import {
|
|
32
|
+
SocketManager,
|
|
33
|
+
connectSocket,
|
|
34
|
+
createRoomOnMediaSFU,
|
|
35
|
+
joinRoomOnMediaSFU,
|
|
36
|
+
} from 'mediasfu-shared';
|
|
37
|
+
|
|
38
|
+
const createResult = await createRoomOnMediaSFU({
|
|
39
|
+
payload: {
|
|
40
|
+
action: 'create',
|
|
41
|
+
userName: 'Ada',
|
|
42
|
+
duration: 60,
|
|
43
|
+
capacity: 10,
|
|
44
|
+
},
|
|
45
|
+
apiUserName: 'your-api-username',
|
|
46
|
+
apiKey: 'your-64-character-api-key',
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
const joinResult = await joinRoomOnMediaSFU({
|
|
50
|
+
payload: {
|
|
51
|
+
action: 'join',
|
|
52
|
+
meetingID: 'room123',
|
|
53
|
+
userName: 'Ben',
|
|
54
|
+
},
|
|
55
|
+
apiUserName: 'your-api-username',
|
|
56
|
+
apiKey: 'your-64-character-api-key',
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
const socket = await connectSocket({
|
|
60
|
+
apiUserName: 'your-api-username',
|
|
61
|
+
apiKey: 'your-64-character-api-key',
|
|
62
|
+
apiToken: 'your-api-token',
|
|
63
|
+
link: 'https://mediasfu.com/socket',
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
const socketManager = new SocketManager({ socket });
|
|
67
|
+
|
|
68
|
+
console.log(createResult.success, joinResult.success, socketManager.socket.connected);
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
## Import Paths
|
|
72
|
+
|
|
73
|
+
- `mediasfu-shared` exposes the full public runtime surface.
|
|
74
|
+
- `mediasfu-shared/consumers` is useful when you want consumer/grid helpers only.
|
|
75
|
+
- `mediasfu-shared/methods` is useful when you want action utilities and room helpers.
|
|
76
|
+
- `mediasfu-shared/types` is useful when you only need TypeScript contracts.
|
|
77
|
+
|
|
78
|
+
## Documentation
|
|
79
|
+
|
|
80
|
+
- Main docs: [https://mediasfu.com/documentation](https://mediasfu.com/documentation)
|
|
81
|
+
- User guide: [https://mediasfu.com/user-guide](https://mediasfu.com/user-guide)
|
|
82
|
+
- MediaSFU Open / CE: [https://github.com/MediaSFU/MediaSFUOpen](https://github.com/MediaSFU/MediaSFUOpen)
|
|
83
|
+
|
|
84
|
+
Generate package-local API docs with:
|
|
85
|
+
|
|
86
|
+
```bash
|
|
87
|
+
npm run build-docs
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
## Related Packages
|
|
91
|
+
|
|
92
|
+
- [mediasfu-reactjs](https://www.npmjs.com/package/mediasfu-reactjs)
|
|
93
|
+
- [mediasfu-vue](https://www.npmjs.com/package/mediasfu-vue)
|
|
94
|
+
- [mediasfu-angular](https://www.npmjs.com/package/mediasfu-angular)
|
|
95
|
+
|
|
96
|
+
## Support
|
|
97
|
+
|
|
98
|
+
- GitHub issues: [https://github.com/MediaSFU/MediaSFU-Shared/issues](https://github.com/MediaSFU/MediaSFU-Shared/issues)
|
|
99
|
+
- Email: info@mediasfu.com
|
|
100
|
+
|
|
101
|
+
## License
|
|
102
|
+
|
|
103
|
+
MIT. See [LICENSE](LICENSE).
|