@agora-js/media 4.20.1 → 4.20.2-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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agora-js/media",
3
- "version": "4.20.1",
3
+ "version": "4.20.2-1",
4
4
  "description": "media module across @agora-js packages",
5
5
  "main": "AgoraRTC_N-media.js",
6
6
  "module": "AgoraRTC_N-media.esm.mjs",
@@ -23,9 +23,9 @@
23
23
  "homepage": "https://api-ref.agora.io/en/voice-sdk/web/4.x/index.html",
24
24
  "peerDependencies": {},
25
25
  "dependencies": {
26
- "@agora-js/shared": "4.20.1",
27
- "@agora-js/report": "4.20.1",
28
- "axios": "^0.27.2",
26
+ "@agora-js/shared": "4.20.2-1",
27
+ "@agora-js/report": "4.20.2-1",
28
+ "axios": "^1.6.7",
29
29
  "agora-rte-extension": "^1.2.4",
30
30
  "webrtc-adapter": "8.2.0",
31
31
  "pako": "^2.1.0"
@@ -533,7 +533,7 @@ export declare interface CameraVideoTrackInitConfig {
533
533
  */
534
534
  cameraId?: string;
535
535
  /**
536
- * **Since**
536
+ * @since
537
537
  * <br>&emsp;&emsp;&emsp;*4.0.0*
538
538
  *
539
539
  * Transmission optimization mode. Whether to prioritize video quality or smoothness:
@@ -551,7 +551,7 @@ export declare interface CameraVideoTrackInitConfig {
551
551
  /**
552
552
  * @ignore
553
553
  *
554
- * **Since**
554
+ * @since
555
555
  * <br>&emsp;&emsp;&emsp;*4.18.0*
556
556
  *
557
557
  * Configurations for Scalable Video Coding (SVC).
@@ -657,7 +657,7 @@ export declare interface CustomVideoTrackInitConfig {
657
657
  */
658
658
  mediaStreamTrack: MediaStreamTrack;
659
659
  /**
660
- * **Since**
660
+ * @since
661
661
  * <br>&emsp;&emsp;&emsp;*4.17.1*
662
662
  *
663
663
  * Width of the video.
@@ -668,7 +668,7 @@ export declare interface CustomVideoTrackInitConfig {
668
668
  */
669
669
  width?: number | ConstrainLong;
670
670
  /**
671
- * **Since**
671
+ * @since
672
672
  * <br>&emsp;&emsp;&emsp;*4.17.1*
673
673
  *
674
674
  * Height of the video.
@@ -679,7 +679,7 @@ export declare interface CustomVideoTrackInitConfig {
679
679
  */
680
680
  height?: number | ConstrainLong;
681
681
  /**
682
- * **Since**
682
+ * @since
683
683
  * <br>&emsp;&emsp;&emsp;*4.17.1*
684
684
  *
685
685
  * Frame rate of the video (fps).
@@ -698,7 +698,7 @@ export declare interface CustomVideoTrackInitConfig {
698
698
  */
699
699
  bitrateMax?: number;
700
700
  /**
701
- * **Since**
701
+ * @since
702
702
  * <br>&emsp;&emsp;&emsp;*4.0.0*
703
703
  *
704
704
  * Transmission optimization mode. Whether to prioritize video quality or smoothness:
@@ -716,7 +716,7 @@ export declare interface CustomVideoTrackInitConfig {
716
716
  /**
717
717
  * @ignore
718
718
  *
719
- * **Since**
719
+ * @since
720
720
  * <br>&emsp;&emsp;&emsp;*4.18.0*
721
721
  *
722
722
  * Configurations for Scalable Video Coding (SVC).
@@ -897,7 +897,7 @@ declare function event_beauty_effect_overload(): void;
897
897
  declare function event_first_frame_decoded(): void;
898
898
 
899
899
  /**
900
- * **Since**
900
+ * @since
901
901
  * <br>&emsp;&emsp;&emsp;*4.20.1*
902
902
  *
903
903
  * Parsing SEI data from the H.264 video stream triggers this event, which returns the SEI data.
@@ -980,7 +980,7 @@ declare function event_user_datachannel_message(data: ArrayBuffer): void;
980
980
  declare function event_user_datachannel_open(): void;
981
981
 
982
982
  /**
983
- * **Since**
983
+ * @since
984
984
  * <br>&emsp;&emsp;&emsp;*4.8.0*
985
985
  *
986
986
  * Indicates the visibility of the `<video>` HTML tag.
@@ -996,7 +996,7 @@ declare function event_user_datachannel_open(): void;
996
996
  declare function event_video_element_visible_status(data?: CheckVideoVisibleResult): void;
997
997
 
998
998
  /**
999
- * **Since**
999
+ * @since
1000
1000
  * <br>&emsp;&emsp;&emsp;*4.8.0*
1001
1001
  *
1002
1002
  * Indicates the visibility of the `<video>` HTML tag.
@@ -1128,7 +1128,7 @@ export declare interface IBufferSourceAudioTrack extends ILocalAudioTrack {
1128
1128
  */
1129
1129
  duration: number;
1130
1130
  /**
1131
- * **Since**
1131
+ * @since
1132
1132
  * <br>&emsp;&emsp;&emsp;*4.18.0*
1133
1133
  *
1134
1134
  * The playback speed of the current audio file. Valid range is [50, 400], where:
@@ -1183,7 +1183,7 @@ export declare interface IBufferSourceAudioTrack extends ILocalAudioTrack {
1183
1183
  */
1184
1184
  stopProcessAudioBuffer(): void;
1185
1185
  /**
1186
- * **Since**
1186
+ * @since
1187
1187
  * <br>&emsp;&emsp;&emsp;*4.18.0*
1188
1188
  *
1189
1189
  * Sets the playback speed for the current audio file.
@@ -1223,7 +1223,7 @@ export declare interface ICameraVideoTrack extends ILocalVideoTrack {
1223
1223
  deviceId: string;
1224
1224
  }>): Promise<void>;
1225
1225
  /**
1226
- * **Since**
1226
+ * @since
1227
1227
  * <br>&emsp;&emsp;&emsp;*4.0.0*
1228
1228
  *
1229
1229
  * Enables/Disables the track.
@@ -1240,7 +1240,7 @@ export declare interface ICameraVideoTrack extends ILocalVideoTrack {
1240
1240
  */
1241
1241
  setEnabled(enabled: boolean): Promise<void>;
1242
1242
  /**
1243
- * **Since**
1243
+ * @since
1244
1244
  * <br>&emsp;&emsp;&emsp;*4.19.0*
1245
1245
  *
1246
1246
  * Clones the current video track to create a new video track.
@@ -1332,7 +1332,7 @@ export declare interface ILocalAudioTrack extends ILocalTrack {
1332
1332
  */
1333
1333
  play(): void;
1334
1334
  /**
1335
- * **Since**
1335
+ * @since
1336
1336
  * <br>&emsp;&emsp;&emsp;*4.1.0*
1337
1337
  *
1338
1338
  * > Note:
@@ -1346,7 +1346,7 @@ export declare interface ILocalAudioTrack extends ILocalTrack {
1346
1346
  /**
1347
1347
  * Gets the statistics of a local audio track.
1348
1348
  *
1349
- * **DEPRECATED** from v4.1.0. Use [AgoraRTCClient.getLocalVideoStats]{@link IAgoraRTCClient.getLocalVideoStats} and [AgoraRTCClient.getLocalAudioStats]{@link IAgoraRTCClient.getLocalAudioStats} instead.
1349
+ * @deprecated from v4.1.0. Use [AgoraRTCClient.getLocalVideoStats]{@link IAgoraRTCClient.getLocalVideoStats} and [AgoraRTCClient.getLocalAudioStats]{@link IAgoraRTCClient.getLocalAudioStats} instead.
1350
1350
  */
1351
1351
  getStats(): LocalAudioTrackStats;
1352
1352
  /**
@@ -1358,14 +1358,14 @@ export declare interface ILocalAudioTrack extends ILocalTrack {
1358
1358
  */
1359
1359
  pipe(processor: IAudioProcessor): IAudioProcessor;
1360
1360
  /**
1361
- * **Since**
1361
+ * @since
1362
1362
  * <br>&emsp;&emsp;&emsp;*4.10.0*
1363
1363
  *
1364
1364
  * Removes the `Processor` inserted to the local audio track.
1365
1365
  */
1366
1366
  unpipe(): void;
1367
1367
  /**
1368
- * **Since**
1368
+ * @since
1369
1369
  * <br>&emsp;&emsp;&emsp;*4.10.0*
1370
1370
  *
1371
1371
  * The destination of the current processing pipeline on the local audio track.
@@ -1402,7 +1402,7 @@ export declare interface ILocalTrack extends ITrack {
1402
1402
  */
1403
1403
  on(event: "transceiver-updated", listener: typeof event_transceiver_updated): void;
1404
1404
  /**
1405
- * **Since**
1405
+ * @since
1406
1406
  * <br>&emsp;&emsp;&emsp;*4.0.0*
1407
1407
  *
1408
1408
  * Enables/Disables the track.
@@ -1419,7 +1419,7 @@ export declare interface ILocalTrack extends ITrack {
1419
1419
  */
1420
1420
  setEnabled(enabled: boolean): Promise<void>;
1421
1421
  /**
1422
- * **DEPRECATED** from v4.1.0. Use [AgoraRTCClient.getLocalVideoStats]{@link IAgoraRTCClient.getLocalVideoStats} and [AgoraRTCClient.getLocalAudioStats]{@link IAgoraRTCClient.getLocalAudioStats} instead.
1422
+ * @deprecated from v4.1.0. Use [AgoraRTCClient.getLocalVideoStats]{@link IAgoraRTCClient.getLocalVideoStats} and [AgoraRTCClient.getLocalAudioStats]{@link IAgoraRTCClient.getLocalAudioStats} instead.
1423
1423
  *
1424
1424
  * Gets the statistics of a local track.
1425
1425
  *
@@ -1438,7 +1438,7 @@ export declare interface ILocalTrack extends ITrack {
1438
1438
  /**
1439
1439
  * Sends or stops sending the media data of the track.
1440
1440
  *
1441
- * **Since**
1441
+ * @since
1442
1442
  * <br>&emsp;&emsp;&emsp;*4.6.0*
1443
1443
  *
1444
1444
  * If the track is published, a successful call of `setMuted(true)` triggers the [user-unpublished]{@link IAgoraRTCClient.event_user_unpublished} event on the remote client, and a successful call of `setMuted(false)` triggers the [user-published]{@link IAgoraRTCClient.event_user_published} event.
@@ -1499,11 +1499,11 @@ export declare interface ILocalVideoTrack extends ILocalTrack {
1499
1499
  /**
1500
1500
  * Gets the statistics of a local video track.
1501
1501
  *
1502
- * **DEPRECATED** from v4.1.0. Use [AgoraRTCClient.getLocalVideoStats]{@link IAgoraRTCClient.getLocalVideoStats} and [AgoraRTCClient.getLocalAudioStats]{@link IAgoraRTCClient.getLocalAudioStats} instead.
1502
+ * @deprecated from v4.1.0. Use [AgoraRTCClient.getLocalVideoStats]{@link IAgoraRTCClient.getLocalVideoStats} and [AgoraRTCClient.getLocalAudioStats]{@link IAgoraRTCClient.getLocalAudioStats} instead.
1503
1503
  */
1504
1504
  getStats(): LocalVideoTrackStats;
1505
1505
  /**
1506
- * **Since**
1506
+ * @since
1507
1507
  * <br>&emsp;&emsp;&emsp;*4.19.0*
1508
1508
  *
1509
1509
  * Clones the current video track to create a new video track.
@@ -1538,7 +1538,7 @@ export declare interface ILocalVideoTrack extends ILocalTrack {
1538
1538
  */
1539
1539
  setBeautyEffect(enabled: boolean, options?: BeautyEffectOptions): Promise<void>;
1540
1540
  /**
1541
- * **Since**
1541
+ * @since
1542
1542
  * <br>&emsp;&emsp;&emsp;*4.1.0*
1543
1543
  *
1544
1544
  * Gets the data of the video frame being rendered.
@@ -1554,7 +1554,7 @@ export declare interface ILocalVideoTrack extends ILocalTrack {
1554
1554
  */
1555
1555
  getCurrentFrameImage(imageType: string, quality: number): Promise<ImageTypedData>;
1556
1556
  /**
1557
- * **Since**
1557
+ * @since
1558
1558
  * <br>&emsp;&emsp;&emsp;*4.2.0*
1559
1559
  *
1560
1560
  * Sets the video transmission optimization mode.
@@ -1576,7 +1576,7 @@ export declare interface ILocalVideoTrack extends ILocalTrack {
1576
1576
  */
1577
1577
  setOptimizationMode(mode: "balanced" | "motion" | "detail"): Promise<void>;
1578
1578
  /**
1579
- * **Since**
1579
+ * @since
1580
1580
  * <br>&emsp;&emsp;&emsp;*4.8.0*
1581
1581
  *
1582
1582
  * Gets the visibility of the `<video>` HTML tag.
@@ -1598,21 +1598,21 @@ export declare interface ILocalVideoTrack extends ILocalTrack {
1598
1598
  */
1599
1599
  pipe(processor: IBaseProcessor): IBaseProcessor;
1600
1600
  /**
1601
- * **Since**
1601
+ * @since
1602
1602
  * <br>&emsp;&emsp;&emsp;*4.10.0*
1603
1603
  *
1604
1604
  * Removes the `Processor` inserted to the local video track.
1605
1605
  */
1606
1606
  unpipe(): void;
1607
1607
  /**
1608
- * **Since**
1608
+ * @since
1609
1609
  * <br>&emsp;&emsp;&emsp;*4.10.0*
1610
1610
  *
1611
1611
  * The destination of the current processing pipeline on the local video track.
1612
1612
  */
1613
1613
  processorDestination: IBaseProcessor;
1614
1614
  /**
1615
- * **Since**
1615
+ * @since
1616
1616
  * <br>&emsp;&emsp;&emsp;*4.17.0*
1617
1617
  *
1618
1618
  * Replaces the local video track.
@@ -1684,7 +1684,7 @@ export declare interface IMicrophoneAudioTrack extends ILocalAudioTrack {
1684
1684
  */
1685
1685
  setDevice(deviceId: string): Promise<void>;
1686
1686
  /**
1687
- * **Since**
1687
+ * @since
1688
1688
  * <br>&emsp;&emsp;&emsp;*4.0.0*
1689
1689
  *
1690
1690
  * Enables/Disables the track.
@@ -1733,7 +1733,7 @@ export declare interface IRemoteAudioTrack extends IRemoteTrack {
1733
1733
  */
1734
1734
  play(): void;
1735
1735
  /**
1736
- * **Since**
1736
+ * @since
1737
1737
  * <br>&emsp;&emsp;&emsp;*4.1.0*
1738
1738
  *
1739
1739
  * Sets the audio playback device, for example, the speaker.
@@ -1781,7 +1781,7 @@ export declare interface IRemoteAudioTrack extends IRemoteTrack {
1781
1781
  */
1782
1782
  getVolumeLevel(): number;
1783
1783
  /**
1784
- * **Since**
1784
+ * @since
1785
1785
  * <br>&emsp;&emsp;&emsp;*4.13.0*
1786
1786
  *
1787
1787
  * Inserts a `Processor` to the remote audio track.
@@ -1792,14 +1792,14 @@ export declare interface IRemoteAudioTrack extends IRemoteTrack {
1792
1792
  */
1793
1793
  pipe(processor: IAudioProcessor): IAudioProcessor;
1794
1794
  /**
1795
- * **Since**
1795
+ * @since
1796
1796
  * <br>&emsp;&emsp;&emsp;*4.13.0*
1797
1797
  *
1798
1798
  * Removes the `Processor` inserted to the remote audio track.
1799
1799
  */
1800
1800
  unpipe(): void;
1801
1801
  /**
1802
- * **Since**
1802
+ * @since
1803
1803
  * <br>&emsp;&emsp;&emsp;*4.13.0*
1804
1804
  *
1805
1805
  * The destination of the current processing pipeline on the remote audio track.
@@ -1845,7 +1845,7 @@ export declare interface IRemoteTrack extends ITrack {
1845
1845
  /**
1846
1846
  * Gets the statistics of a remote track.
1847
1847
  *
1848
- * **DEPRECATED** from v4.1.0. Use [AgoraRTCClient.getRemoteVideoStats]{@link IAgoraRTCClient.getRemoteVideoStats} and [AgoraRTCClient.getRemoteAudioStats]{@link IAgoraRTCClient.getRemoteAudioStats} instead.
1848
+ * @deprecated from v4.1.0. Use [AgoraRTCClient.getRemoteVideoStats]{@link IAgoraRTCClient.getRemoteVideoStats} and [AgoraRTCClient.getRemoteAudioStats]{@link IAgoraRTCClient.getRemoteAudioStats} instead.
1849
1849
  * @return An [[RemoteAudioTrackStats]] or [[RemoteVideoTrackStats]] object.
1850
1850
  */
1851
1851
  getStats(): RemoteAudioTrackStats | RemoteVideoTrackStats;
@@ -1900,7 +1900,7 @@ export declare interface IRemoteVideoTrack extends IRemoteTrack {
1900
1900
  */
1901
1901
  play(element: string | HTMLElement, config?: VideoPlayerConfig): void;
1902
1902
  /**
1903
- * **Since**
1903
+ * @since
1904
1904
  * <br>&emsp;&emsp;&emsp;*4.1.0*
1905
1905
  *
1906
1906
  * Gets the data of the video frame being rendered.
@@ -1911,7 +1911,7 @@ export declare interface IRemoteVideoTrack extends IRemoteTrack {
1911
1911
  */
1912
1912
  getCurrentFrameData(): ImageData;
1913
1913
  /**
1914
- * **Since**
1914
+ * @since
1915
1915
  * <br>&emsp;&emsp;&emsp;*4.8.0*
1916
1916
  *
1917
1917
  * Gets the visibility of the `<video>` HTML tag.
@@ -1925,7 +1925,7 @@ export declare interface IRemoteVideoTrack extends IRemoteTrack {
1925
1925
  */
1926
1926
  getVideoElementVisibleStatus(): CheckVideoVisibleResult | undefined;
1927
1927
  /**
1928
- * **Since**
1928
+ * @since
1929
1929
  * <br>&emsp;&emsp;&emsp;*4.13.0*
1930
1930
  *
1931
1931
  * Inserts a `Processor` to the remote video track.
@@ -1936,14 +1936,14 @@ export declare interface IRemoteVideoTrack extends IRemoteTrack {
1936
1936
  */
1937
1937
  pipe(processor: IBaseProcessor): IBaseProcessor;
1938
1938
  /**
1939
- * **Since**
1939
+ * @since
1940
1940
  * <br>&emsp;&emsp;&emsp;*4.13.0*
1941
1941
  *
1942
1942
  * Removes the `Processor` inserted to the remote video track.
1943
1943
  */
1944
1944
  unpipe(): void;
1945
1945
  /**
1946
- * **Since**
1946
+ * @since
1947
1947
  * <br>&emsp;&emsp;&emsp;*4.13.0*
1948
1948
  *
1949
1949
  * The destination of the current processing pipeline on the remote video track.
@@ -2852,13 +2852,13 @@ export declare interface ScreenVideoTrackInitConfig {
2852
2852
  extensionId?: string;
2853
2853
  /**
2854
2854
  *
2855
- * **DEPRECATED** from v4.17.1. Use {@link displaySurface} instead.
2855
+ * @deprecated from v4.17.1. Use {@link displaySurface} instead.
2856
2856
  *
2857
2857
  * The type of the source for screen sharing.
2858
2858
  */
2859
2859
  screenSourceType?: ScreenSourceType;
2860
2860
  /**
2861
- * **Since**
2861
+ * @since
2862
2862
  * <br>&emsp;&emsp;&emsp;*4.0.0*
2863
2863
  *
2864
2864
  * Transmission optimization mode. Whether to prioritize video quality or smoothness:
@@ -2875,7 +2875,7 @@ export declare interface ScreenVideoTrackInitConfig {
2875
2875
  /**
2876
2876
  * @ignore
2877
2877
  *
2878
- * **Since**
2878
+ * @since
2879
2879
  * <br>&emsp;&emsp;&emsp;*4.18.0*
2880
2880
  *
2881
2881
  * Configurations for Scalable Video Coding (SVC).
@@ -2887,7 +2887,7 @@ export declare interface ScreenVideoTrackInitConfig {
2887
2887
  scalabiltyMode?: SVCConfiguration | SVCConfigurationPreset;
2888
2888
  /**
2889
2889
  *
2890
- * **Since**
2890
+ * @since
2891
2891
  * <br>&emsp;&emsp;&emsp;*4.17.1*
2892
2892
  *
2893
2893
  * The pre-selected pane in the media picker. See [displaySurface](https://developer.chrome.com/docs/web-platform/screen-sharing-controls/#displaySurface) for details.
@@ -2897,7 +2897,7 @@ export declare interface ScreenVideoTrackInitConfig {
2897
2897
  displaySurface?: "browser" | "window" | "monitor";
2898
2898
  /**
2899
2899
  *
2900
- * **Since**
2900
+ * @since
2901
2901
  * <br>&emsp;&emsp;&emsp;*4.17.1*
2902
2902
  *
2903
2903
  * Whether to allow the user to share the current tab:
@@ -2913,7 +2913,7 @@ export declare interface ScreenVideoTrackInitConfig {
2913
2913
  selfBrowserSurface?: "include" | "exclude";
2914
2914
  /**
2915
2915
  *
2916
- * **Since**
2916
+ * @since
2917
2917
  * <br>&emsp;&emsp;&emsp;*4.17.1*
2918
2918
  *
2919
2919
  * Whether to allow the user to dynamically switch between shared tabs:
@@ -2927,7 +2927,7 @@ export declare interface ScreenVideoTrackInitConfig {
2927
2927
  surfaceSwitching?: "include" | "exclude";
2928
2928
  /**
2929
2929
  *
2930
- * **Since**
2930
+ * @since
2931
2931
  * <br>&emsp;&emsp;&emsp;*4.17.1*
2932
2932
  *
2933
2933
  * Whether to capture system audio:
@@ -2987,7 +2987,7 @@ export declare const SUPPORT_VIDEO_ENCODER_CONFIG_LIST: Record<string, VideoEnco
2987
2987
 
2988
2988
  /**
2989
2989
  * @ignore
2990
- * **Since**
2990
+ * @since
2991
2991
  * <br>&emsp;&emsp;&emsp;*4.18.0*
2992
2992
  *
2993
2993
  * Custom SVC encoding configurations.
@@ -3011,7 +3011,7 @@ export declare interface SVCConfiguration {
3011
3011
  /**
3012
3012
  * @ignore
3013
3013
  *
3014
- * **Since**
3014
+ * @since
3015
3015
  * <br>&emsp;&emsp;&emsp;*4.18.0*
3016
3016
  *
3017
3017
  * The preset SVC configurations provided by the SDK.