mediasfu-vue 1.4.0 → 1.4.1

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 CHANGED
@@ -1,9 +1,14 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.4.1 — 2026-10-27
4
+
5
+ - Requires `mediasfu-shared` 1.4.1 or later.
6
+ - **Camera bitrates are set by MediaSFU.** The `videoBitrateProfile` option added in 1.4.0 is removed; camera bitrates follow the room's quality tier. Apps that still pass it are unaffected: the value is ignored.
7
+
3
8
  ## 1.4.0 — 2026-10-27
4
9
 
5
10
  - Requires `mediasfu-shared` 1.4.0 or later.
6
- - **Leaner camera bitrates by default.** Rooms now use a `lean` camera bitrate profile sized for webcam content at each tier's frame rate (HD 2.25×, FHD 3× the SD ladder instead of 4× and 8×). This lowers bandwidth and cost and holds up better on weak links. Set `videoBitrateProfile` to `'rich'` on `MediasfuGeneric` to keep the previous ladder.
11
+ - **Leaner camera bitrates.** Rooms now use camera bitrates sized for webcam content at each tier's frame rate (HD 2.25×, FHD 3× the SD ladder instead of 4× and 8×). This lowers bandwidth and cost and holds up better on weak links.
7
12
  - **Smarter language pickers.** The translation settings modal groups listener languages by measured quality (natural voice, captions with a basic voice, captions only) and marks speaker languages as supported, beta or not offered. Ratings follow the room's preset, or a custom `{ stt, llm, tts }` stack passed as `languageCapabilityStack`.
8
13
  - **From `mediasfu-shared` 1.4.0:** HLS playback failover (`getHlsPlaybackCandidates`, `fallbackSources` on `attachPlayback`), and leaving a room no longer throws when the disconnect handler mutes a stream that is already gone.
9
14
 
package/dist/index.cjs CHANGED
@@ -36952,13 +36952,9 @@ function applyCameraEncodingPolicy(params, singleEncoding) {
36952
36952
  params.encodings = [encoding];
36953
36953
  return params;
36954
36954
  }
36955
- const CAMERA_BITRATE_FACTORS = {
36956
- rich: { QnHD: 0.25, sd: 1, hd: 4, fhd: 8, qhd: 16 },
36957
- lean: { QnHD: 0.125, sd: 0.5625, hd: 2.25, fhd: 3, qhd: 10 }
36958
- };
36959
- function cameraBitrateFactor(targetResolution, profile = "lean") {
36960
- const table = CAMERA_BITRATE_FACTORS[profile === "rich" ? "rich" : "lean"];
36961
- return table[String(targetResolution)] ?? table.sd;
36955
+ const CAMERA_BITRATE_FACTORS = { QnHD: 0.125, sd: 0.5625, hd: 2.25, fhd: 3, qhd: 10 };
36956
+ function cameraBitrateFactor(targetResolution) {
36957
+ return CAMERA_BITRATE_FACTORS[String(targetResolution)] ?? CAMERA_BITRATE_FACTORS.sd;
36962
36958
  }
36963
36959
  function scaleCameraBitrates(params, factor) {
36964
36960
  if (factor === 1) return params;
@@ -36982,7 +36978,7 @@ function freshRoomVideoParams(current, fallback) {
36982
36978
  baseParams.set(fresh, base);
36983
36979
  return fresh;
36984
36980
  }
36985
- const updateRoomParametersClient = ({ parameters, simulcastOff = parameters.simulcastOff, roomCapacity = parameters.roomCapacity, videoBitrateProfile = parameters.videoBitrateProfile ?? "lean" }) => {
36981
+ const updateRoomParametersClient = ({ parameters, simulcastOff = parameters.simulcastOff, roomCapacity = parameters.roomCapacity }) => {
36986
36982
  try {
36987
36983
  const {
36988
36984
  screenPageLimit,
@@ -37123,7 +37119,7 @@ const updateRoomParametersClient = ({ parameters, simulcastOff = parameters.simu
37123
37119
  } else if (targetResolution == "qhd") {
37124
37120
  frameRateValue = mediasfuShared.qhdFrameRate;
37125
37121
  }
37126
- const bitrateFactor = cameraBitrateFactor(targetResolution, videoBitrateProfile);
37122
+ const bitrateFactor = cameraBitrateFactor(targetResolution);
37127
37123
  scaleCameraBitrates(vParamsValue, bitrateFactor);
37128
37124
  scaleCameraBitrates(hParamsValue, bitrateFactor);
37129
37125
  const singleCameraEncoding = cameraSimulcastOff(data.meetingRoomParams.type, data.capacity, {
@@ -37768,7 +37764,6 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
37768
37764
  renderUIExternally: { type: Boolean, default: false },
37769
37765
  externalUITarget: { default: "#mediasfu-modern-head" },
37770
37766
  simulcastOff: { type: Boolean },
37771
- videoBitrateProfile: {},
37772
37767
  roomCapacity: {},
37773
37768
  noUIPreJoinOptions: { default: void 0 },
37774
37769
  joinMediaSFURoom: { type: Function, default: void 0 },
@@ -42225,7 +42220,6 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
42225
42220
  try {
42226
42221
  updateRoomParametersClient({
42227
42222
  simulcastOff: props.simulcastOff,
42228
- videoBitrateProfile: props.videoBitrateProfile,
42229
42223
  roomCapacity: props.roomCapacity ?? (props.noUIPreJoinOptions && "capacity" in props.noUIPreJoinOptions ? props.noUIPreJoinOptions.capacity : void 0),
42230
42224
  parameters: {
42231
42225
  ...allParameters.value,
@@ -43861,7 +43855,7 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
43861
43855
  };
43862
43856
  }
43863
43857
  });
43864
- const MediasfuGeneric = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-ea20dd08"]]);
43858
+ const MediasfuGeneric = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-545c61b9"]]);
43865
43859
  const _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
43866
43860
  __name: "MediasfuBroadcast",
43867
43861
  props: {
@@ -43879,7 +43873,6 @@ const _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
43879
43873
  renderUIExternally: { type: Boolean },
43880
43874
  externalUITarget: {},
43881
43875
  simulcastOff: { type: Boolean },
43882
- videoBitrateProfile: {},
43883
43876
  roomCapacity: {},
43884
43877
  noUIPreJoinOptions: {},
43885
43878
  joinMediaSFURoom: {},
@@ -43925,7 +43918,6 @@ const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
43925
43918
  renderUIExternally: { type: Boolean },
43926
43919
  externalUITarget: {},
43927
43920
  simulcastOff: { type: Boolean },
43928
- videoBitrateProfile: {},
43929
43921
  roomCapacity: {},
43930
43922
  noUIPreJoinOptions: {},
43931
43923
  joinMediaSFURoom: {},
@@ -43971,7 +43963,6 @@ const _sfc_main$o = /* @__PURE__ */ vue.defineComponent({
43971
43963
  renderUIExternally: { type: Boolean },
43972
43964
  externalUITarget: {},
43973
43965
  simulcastOff: { type: Boolean },
43974
- videoBitrateProfile: {},
43975
43966
  roomCapacity: {},
43976
43967
  noUIPreJoinOptions: {},
43977
43968
  joinMediaSFURoom: {},
@@ -44017,7 +44008,6 @@ const _sfc_main$n = /* @__PURE__ */ vue.defineComponent({
44017
44008
  renderUIExternally: { type: Boolean },
44018
44009
  externalUITarget: {},
44019
44010
  simulcastOff: { type: Boolean },
44020
- videoBitrateProfile: {},
44021
44011
  roomCapacity: {},
44022
44012
  noUIPreJoinOptions: {},
44023
44013
  joinMediaSFURoom: {},
@@ -49782,7 +49772,6 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
49782
49772
  renderUIExternally: { type: Boolean },
49783
49773
  externalUITarget: {},
49784
49774
  simulcastOff: { type: Boolean },
49785
- videoBitrateProfile: {},
49786
49775
  roomCapacity: {},
49787
49776
  noUIPreJoinOptions: {},
49788
49777
  joinMediaSFURoom: {},