@agora-js/media 4.24.1 → 4.24.2-200

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/media.d.ts CHANGED
@@ -433,10 +433,6 @@ export declare class AudioProcessorDestination extends EventEmitter implements I
433
433
  }): void;
434
434
  }
435
435
 
436
- export declare interface AudioPts {
437
- value: BigInt;
438
- }
439
-
440
436
  declare abstract class AudioSource extends EventEmitter {
441
437
  outputNode: GainNode;
442
438
  outputTrack?: MediaStreamTrack;
@@ -1296,6 +1292,8 @@ export declare function detectSupportRestrictOwnAudio(): boolean;
1296
1292
 
1297
1293
  export declare function detectSupportSuppressLocalAudioPlayback(): boolean;
1298
1294
 
1295
+ export declare function detectSupportWebRTCEncodedTransform(): boolean;
1296
+
1299
1297
  /**
1300
1298
  * 音视频采集设备的信息。
1301
1299
  *
@@ -2953,6 +2951,7 @@ export declare function interceptLocalAudioFrame(sender: RTCRtpSender, options?:
2953
2951
 
2954
2952
  export declare interface InterceptLocalAudioFrameOptions {
2955
2953
  metadata?: () => Uint8Array | undefined;
2954
+ pts?: () => BigInt | undefined;
2956
2955
  }
2957
2956
 
2958
2957
  export declare function interceptLocalVideoFrame(sender: RTCRtpSender, localVideoTrack: LocalVideoTrack): Promise<void>;
@@ -2963,6 +2962,7 @@ export declare interface InterceptRemoteAudioFrameOptions {
2963
2962
  enableTopn?: boolean;
2964
2963
  enableMetadata?: boolean;
2965
2964
  enablePts?: boolean;
2965
+ pt?: number | undefined;
2966
2966
  onMetadata?: (metadata: Uint8Array) => void;
2967
2967
  onPts?: (pts: bigint) => void;
2968
2968
  }
@@ -3559,6 +3559,7 @@ export declare class LocalAudioTrack extends LocalTrack implements ILocalAudioTr
3559
3559
  _encoderConfig?: AudioEncoderConfiguration;
3560
3560
  _trackSource: AudioTrackSource | FakeTrackSource;
3561
3561
  metadata: AudioMetadata[];
3562
+ pts: BigInt[];
3562
3563
  /**
3563
3564
  * @description This method is used to init WebAudio, if you're sure you don't want to use WebAudio, call _trackSource
3564
3565
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agora-js/media",
3
- "version": "4.24.1",
3
+ "version": "4.24.2-200",
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,8 +23,8 @@
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.24.1",
27
- "@agora-js/report": "4.24.1",
26
+ "@agora-js/shared": "4.24.2-200",
27
+ "@agora-js/report": "4.24.2-200",
28
28
  "axios": "^1.13.2",
29
29
  "agora-rte-extension": "^1.2.4",
30
30
  "webrtc-adapter": "8.2.0"
@@ -288,10 +288,6 @@ export declare class AudioProcessorDestination extends EventEmitter implements I
288
288
  }): void;
289
289
  }
290
290
 
291
- export declare interface AudioPts {
292
- value: BigInt;
293
- }
294
-
295
291
  declare abstract class AudioSource extends EventEmitter {
296
292
  outputNode: GainNode;
297
293
  outputTrack?: MediaStreamTrack;
@@ -847,6 +843,8 @@ export declare function detectSupportRestrictOwnAudio(): boolean;
847
843
 
848
844
  export declare function detectSupportSuppressLocalAudioPlayback(): boolean;
849
845
 
846
+ export declare function detectSupportWebRTCEncodedTransform(): boolean;
847
+
850
848
  /**
851
849
  * Information of the media input device.
852
850
  *
@@ -1816,6 +1814,7 @@ export declare function interceptLocalAudioFrame(sender: RTCRtpSender, options?:
1816
1814
 
1817
1815
  export declare interface InterceptLocalAudioFrameOptions {
1818
1816
  metadata?: () => Uint8Array | undefined;
1817
+ pts?: () => BigInt | undefined;
1819
1818
  }
1820
1819
 
1821
1820
  export declare function interceptLocalVideoFrame(sender: RTCRtpSender, localVideoTrack: LocalVideoTrack): Promise<void>;
@@ -1826,6 +1825,7 @@ export declare interface InterceptRemoteAudioFrameOptions {
1826
1825
  enableTopn?: boolean;
1827
1826
  enableMetadata?: boolean;
1828
1827
  enablePts?: boolean;
1828
+ pt?: number | undefined;
1829
1829
  onMetadata?: (metadata: Uint8Array) => void;
1830
1830
  onPts?: (pts: bigint) => void;
1831
1831
  }
@@ -2167,6 +2167,7 @@ export declare class LocalAudioTrack extends LocalTrack implements ILocalAudioTr
2167
2167
  _encoderConfig?: AudioEncoderConfiguration;
2168
2168
  _trackSource: AudioTrackSource | FakeTrackSource;
2169
2169
  metadata: AudioMetadata[];
2170
+ pts: BigInt[];
2170
2171
  get _source(): AudioTrackSource;
2171
2172
  set _source(source: AudioTrackSource | FakeTrackSource);
2172
2173
  _enabled: boolean;