@agora-js/media 4.24.1 → 4.24.2-100

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;
@@ -2953,6 +2949,7 @@ export declare function interceptLocalAudioFrame(sender: RTCRtpSender, options?:
2953
2949
 
2954
2950
  export declare interface InterceptLocalAudioFrameOptions {
2955
2951
  metadata?: () => Uint8Array | undefined;
2952
+ pts?: () => BigInt | undefined;
2956
2953
  }
2957
2954
 
2958
2955
  export declare function interceptLocalVideoFrame(sender: RTCRtpSender, localVideoTrack: LocalVideoTrack): Promise<void>;
@@ -2963,6 +2960,7 @@ export declare interface InterceptRemoteAudioFrameOptions {
2963
2960
  enableTopn?: boolean;
2964
2961
  enableMetadata?: boolean;
2965
2962
  enablePts?: boolean;
2963
+ pt?: number | undefined;
2966
2964
  onMetadata?: (metadata: Uint8Array) => void;
2967
2965
  onPts?: (pts: bigint) => void;
2968
2966
  }
@@ -3559,6 +3557,7 @@ export declare class LocalAudioTrack extends LocalTrack implements ILocalAudioTr
3559
3557
  _encoderConfig?: AudioEncoderConfiguration;
3560
3558
  _trackSource: AudioTrackSource | FakeTrackSource;
3561
3559
  metadata: AudioMetadata[];
3560
+ pts: BigInt[];
3562
3561
  /**
3563
3562
  * @description This method is used to init WebAudio, if you're sure you don't want to use WebAudio, call _trackSource
3564
3563
  */
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-100",
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-100",
27
+ "@agora-js/report": "4.24.2-100",
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;
@@ -1816,6 +1812,7 @@ export declare function interceptLocalAudioFrame(sender: RTCRtpSender, options?:
1816
1812
 
1817
1813
  export declare interface InterceptLocalAudioFrameOptions {
1818
1814
  metadata?: () => Uint8Array | undefined;
1815
+ pts?: () => BigInt | undefined;
1819
1816
  }
1820
1817
 
1821
1818
  export declare function interceptLocalVideoFrame(sender: RTCRtpSender, localVideoTrack: LocalVideoTrack): Promise<void>;
@@ -1826,6 +1823,7 @@ export declare interface InterceptRemoteAudioFrameOptions {
1826
1823
  enableTopn?: boolean;
1827
1824
  enableMetadata?: boolean;
1828
1825
  enablePts?: boolean;
1826
+ pt?: number | undefined;
1829
1827
  onMetadata?: (metadata: Uint8Array) => void;
1830
1828
  onPts?: (pts: bigint) => void;
1831
1829
  }
@@ -2167,6 +2165,7 @@ export declare class LocalAudioTrack extends LocalTrack implements ILocalAudioTr
2167
2165
  _encoderConfig?: AudioEncoderConfiguration;
2168
2166
  _trackSource: AudioTrackSource | FakeTrackSource;
2169
2167
  metadata: AudioMetadata[];
2168
+ pts: BigInt[];
2170
2169
  get _source(): AudioTrackSource;
2171
2170
  set _source(source: AudioTrackSource | FakeTrackSource);
2172
2171
  _enabled: boolean;