@videosdk.live/react-sdk 0.5.0 → 0.6.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.
@@ -1681,7 +1681,15 @@ export function createMicrophoneAudioTrack({
1681
1681
  * @param multiStream - It will specifiy if the stream should send multiple resolution layers or single resolution layer.
1682
1682
  * Please refere thi link for more understanding [What is multiStream ?](https://docs.videosdk.live/react/guide/video-and-audio-calling-api-sdk/render-media/optimize-video-track#what-is-multistream)
1683
1683
  * ---
1684
- *
1684
+ * @param bitrateMode - It lets you decide whether to prioritize sharp details, save internet data, or find a good balance between the two.
1685
+ * #### Values : `bandwidth_optimized`, `balanced`, `high_quality`
1686
+ * ---
1687
+ *
1688
+ * ---
1689
+ * @param maxLayer - It specifies the maximum number of simulcast layers (maxLayer) to publish.
1690
+ * #### Values : 2, 3
1691
+ * ---
1692
+ *
1685
1693
  * **Code Example**
1686
1694
  * ```js
1687
1695
  * import { createCameraVideoTrack } from "@videosdk.live/react-sdk";
@@ -1692,6 +1700,8 @@ export function createMicrophoneAudioTrack({
1692
1700
  * encoderConfig: "h480p_w640p", // "h540p_w960p" | "h720p_w1280p" ... // Default : "h360p_w640p"
1693
1701
  * facingMode: "environment", // "front", Default : "environment"
1694
1702
  * multiStream:true // false, Default : true
1703
+ * bitrateMode: "bandwidth_optimized" // "balanced" | "high_quality" , Default : "balanced"
1704
+ * maxLayer: 2 // Default : 3
1695
1705
  * });
1696
1706
  * ```
1697
1707
  */
@@ -1700,7 +1710,9 @@ export function createCameraVideoTrack({
1700
1710
  encoderConfig,
1701
1711
  facingMode,
1702
1712
  optimizationMode,
1703
- multiStream
1713
+ multiStream,
1714
+ bitrateMode,
1715
+ maxLayer
1704
1716
  }: {
1705
1717
  cameraId?: string | undefined;
1706
1718
  encoderConfig?:
@@ -1708,7 +1720,6 @@ export function createCameraVideoTrack({
1708
1720
  | 'h180p_w320p'
1709
1721
  | 'h216p_w384p'
1710
1722
  | 'h360p_w640p'
1711
- | 'h360p_w640p_150kbps'
1712
1723
  | 'h540p_w960p'
1713
1724
  | 'h720p_w1280p'
1714
1725
  | 'h1080p_w1920p'
@@ -1727,6 +1738,8 @@ export function createCameraVideoTrack({
1727
1738
  facingMode?: 'user' | 'environment' | undefined;
1728
1739
  optimizationMode?: 'text' | 'motion' | 'detail' | undefined;
1729
1740
  multiStream?: boolean;
1741
+ bitrateMode?: "bandwidth_optimized" | "balanced" | "high_quality" | undefined,
1742
+ maxLayer?: 2 | 3 | undefined,
1730
1743
  }): Promise<MediaStream>;
1731
1744
 
1732
1745
  /**
@@ -1750,7 +1763,7 @@ export function createCameraVideoTrack({
1750
1763
  * ```js
1751
1764
  * import { createScreenShareVideoTrack } from "@videosdk.live/react-sdk";
1752
1765
  *
1753
- * let customTrack = await createCameraVideoTrack({
1766
+ * let customTrack = await createScreenShareVideoTrack({
1754
1767
  * optimizationMode: "motion", // "text" | "detail", Default : "motion"
1755
1768
  * encoderConfig: "h720p_15fps", // `h360p_30fps` | `h1080p_30fps` // Default : `h720p_15fps`
1756
1769
  * withAudio:'enable' // `disable`, Default : `disable`
@@ -2037,6 +2050,11 @@ export const Constants: {
2037
2050
  JOIN_ROOM_FAILED: number,
2038
2051
  SWITCH_ROOM_FAILED: number,
2039
2052
  CHARACTER_REMOVED: number,
2040
- }
2053
+ },
2054
+ BitrateMode: {
2055
+ HIGH_QUALITY: string;
2056
+ BALANCED: string;
2057
+ BANDWIDTH_OPTIMIZED: string;
2058
+ };
2041
2059
  };
2042
2060
  export { CameraDeviceInfo, DeviceInfo, MicrophoneDeviceInfo };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@videosdk.live/react-sdk",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "license": "ISC",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.modern.js",
@@ -74,7 +74,7 @@
74
74
  }
75
75
  },
76
76
  "dependencies": {
77
- "@videosdk.live/js-sdk": "0.4.0",
77
+ "@videosdk.live/js-sdk": "0.5.0",
78
78
  "events": "^3.3.0"
79
79
  }
80
80
  }