mediasfu-vue 1.1.1 → 1.1.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/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ # Changelog
2
+
3
+ ## 1.1.3 — 2026-09-16
4
+
5
+ - Requires `mediasfu-shared` 1.2.2 or later. That release reports the room layout to the recording service as soon as a recording starts, instead of waiting for the next participant or screen change.
package/README.md CHANGED
@@ -156,6 +156,68 @@ Use `customComponent` for a completely different visible workspace while the
156
156
  room component keeps lifecycle ownership. Use the composable below when you
157
157
  want explicit state and action groups as well.
158
158
 
159
+ ## Reuse SDK panels in your own layout
160
+
161
+ Headless mode can combine your application layout with exported SDK controls.
162
+ Keep the room engine mounted with `:return-ui="false"`, receive its parameter
163
+ publications, and pass the latest room parameters to the panel you import.
164
+
165
+ Keep modal visibility connected to the room:
166
+
167
+ 1. Open the panel through the room's matching updater, such as
168
+ `updateIsRecordingModalVisible(true)`.
169
+ 2. Bind the component's `isRecordingModalVisible` prop (template: `:is-recording-modal-visible`) to the current room
170
+ value, and make its `onClose` callback call
171
+ `updateIsRecordingModalVisible(false)`.
172
+ 3. Pass the current room parameters and the component's required callbacks,
173
+ including recording confirmation and start actions.
174
+ 4. Customize supported styles, wrappers, or overrides without replacing the
175
+ underlying room callbacks.
176
+
177
+ Visibility props differ between components; use the exported component's
178
+ contract, not a generic `isVisible` prop for every panel. Do not maintain a
179
+ second independent visibility flag. With headless mode, built-in sidebar
180
+ navigation is not your application's navigation.
181
+
182
+ Opening a panel does not start recording or grant media permission. Keep
183
+ confirmation, permission checks, and teardown under the room engine's control.
184
+
185
+ ### Render the complete standard UI from the headless engine
186
+
187
+ Use `ModernMediasfuGenericHead` when your page needs the complete MediaSFU room
188
+ UI at a different point in its layout without mounting a second room engine.
189
+ The head target must appear before the engine in the template so Vue can move
190
+ the engine's exact compiled UI tree into it on the first render.
191
+
192
+ ```vue
193
+ <script setup lang="ts">
194
+ import {
195
+ ModernMediasfuGeneric,
196
+ ModernMediasfuGenericHead,
197
+ useMediasfuHeadless,
198
+ } from 'mediasfu-vue';
199
+
200
+ const room = useMediasfuHeadless();
201
+ </script>
202
+
203
+ <template>
204
+ <ModernMediasfuGenericHead :parameters="room.parameters.value" />
205
+
206
+ <ModernMediasfuGeneric
207
+ :return-u-i="false"
208
+ render-u-i-externally
209
+ :source-parameters="room.sourceParameters"
210
+ :update-source-parameters="room.updateSourceParameters"
211
+ @media-changed="room.onMediaChanged"
212
+ />
213
+ </template>
214
+ ```
215
+
216
+ The room engine still owns sockets, tracks, modal visibility, and sidebar
217
+ navigation. For more than one room on a page, give each engine a unique
218
+ `external-ui-target` such as `#support-room`, and pass the matching `target-id`
219
+ (`support-room`) to its head.
220
+
159
221
  ## Feature-rich headless quick start
160
222
 
161
223
  This example selects the best incoming stream, renders it, keeps all prepared
@@ -256,6 +318,23 @@ do not add polling. Never call `getUpdatedAllParams()` from a template,
256
318
  computed getter, watcher, or timer because it republishes. Pure reads use
257
319
  `getCurrentParams()`.
258
320
 
321
+ ## Virtual backgrounds and breakout rooms in a custom Vue UI
322
+
323
+ Keep `ModernBackgroundModal` wired to the newest room publication and use the
324
+ room's visibility flag and updater rather than a second Vue ref. Render local
325
+ camera media from `useMediasfuHeadless().localVideo`; it resolves the active
326
+ processed/virtual stream before the raw camera, so self-view matches the stream
327
+ published to everyone else.
328
+
329
+ Reuse `ModernBreakoutRoomsModal` with the same live room bag when you want the
330
+ built-in planner. Save assignments before Start and show action errors in your
331
+ page. Filtering tiles is not a breakout transition: the SDK must update room
332
+ membership and pause/resume consumers for the participant's active room.
333
+
334
+ ## Host leave and rejoin
335
+
336
+ Hosts can choose **Leave room** or **End for everyone**. **Leave room** keeps the room running so the host can rejoin later; **End for everyone** closes it for all participants. Programmatic callers pass `endRoomOnHostExit: false` to leave without ending the room; the default is `true`.
337
+
259
338
  ## Release checklist
260
339
 
261
340
  - Test microphone/camera denial, no-device state, autoplay policy, device
@@ -265,9 +344,22 @@ computed getter, watcher, or timer because it republishes. Pure reads use
265
344
  - Stop app-created tracks and await Leave before unmounting the room.
266
345
  - Keep reusable Cloud credentials and privileged room operations on your server.
267
346
 
347
+ ## Troubleshooting
348
+
349
+ | What you see | Likely cause | What to do |
350
+ |---|---|---|
351
+ | "Unable to connect. Check your credentials and try again." | The room service rejected the credentials, or your create/join backend returned an error. | Check the API username and key on your server, and make sure your create/join adapters pass the room service's response through. For MediaSFU Open, confirm that `local-link` points to a server the browser can reach. |
352
+ | The camera or microphone never starts | The page is not a secure context, or the browser permission was denied. | Serve the app over HTTPS (or `localhost` during development) and allow camera and microphone access for the site. |
353
+ | "You must turn on your video before you can start recording" | The recording is set to capture video while your camera is off. | Turn the camera on first, or switch the recording to audio only. The same applies to audio recordings and the microphone. |
354
+ | "You can only re-configure recording after pausing it" | Recording settings are locked while a recording is running. | Pause the recording, change the settings, then resume. |
355
+ | "You cannot turn off your camera while recording video…" | Turning the camera off would interrupt the recording. | Pause or stop the recording first. |
356
+ | A message ending in "Access denied by host." | The host has restricted that action for participants. | Ask the host to change the participant's permissions. |
357
+ | "Screen share is not allowed when whiteboard is active" | Screen sharing and the whiteboard cannot run at the same time. | Close the whiteboard, then start screen sharing. |
358
+
268
359
  ## Documentation
269
360
 
270
361
  - [Detailed repository guide](README_DETAILED.md)
362
+ - [Changelog](CHANGELOG.md)
271
363
  - [SDK guides and generated API references](https://mediasfu.com/docs/)
272
364
  - [Complete headless guide](https://mediasfu.com/docs/usage/headless)
273
365
  - [REST API Sandbox — run GET/POST requests and copy code](https://mediasfu.com/sandbox)
@@ -284,8 +376,4 @@ computed getter, watcher, or timer because it republishes. Pure reads use
284
376
 
285
377
  ## License
286
378
 
287
- ### Host leave and rejoin
288
-
289
- Hosts now see **Leave room** and **End for everyone**. The first keeps the room active and allows rejoin. Programmatic callers pass `endRoomOnHostExit: false`; existing calls default to `true`.
290
-
291
379
  MIT. See [LICENSE](LICENSE).