@agora-js/media 4.24.2 → 4.24.3
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/AgoraRTC_N-media.esm.mjs +2 -2
- package/AgoraRTC_N-media.js +2 -2
- package/media.d.ts +6 -2
- package/package.json +4 -4
- package/rtc-sdk-media_en.d.ts +6 -2
package/media.d.ts
CHANGED
|
@@ -1294,6 +1294,8 @@ export declare function detectSupportPreSub(store?: SDKStore): boolean;
|
|
|
1294
1294
|
|
|
1295
1295
|
export declare function detectSupportRestrictOwnAudio(): boolean;
|
|
1296
1296
|
|
|
1297
|
+
export declare function detectSupportSDPEndpoint(): boolean;
|
|
1298
|
+
|
|
1297
1299
|
export declare function detectSupportSuppressLocalAudioPlayback(): boolean;
|
|
1298
1300
|
|
|
1299
1301
|
/**
|
|
@@ -4395,6 +4397,7 @@ export declare interface RemoteAudioTrackStats {
|
|
|
4395
4397
|
export declare class RemoteDataChannel extends DataChannel implements IRemoteDataChannel {
|
|
4396
4398
|
private _messageListener;
|
|
4397
4399
|
constructor(config: IDataChannelConfig);
|
|
4400
|
+
_updateDataChannelConfig(config: IDataChannelConfig): void;
|
|
4398
4401
|
_updateOriginDataChannel(datachannel: RTCDataChannel): void;
|
|
4399
4402
|
_close(): void;
|
|
4400
4403
|
private _bandRemoteDataChannelEvents;
|
|
@@ -4507,7 +4510,7 @@ export declare class RemoteVideoTrack extends RemoteTrack implements IRemoteVide
|
|
|
4507
4510
|
protected processorContext: VideoProcessorContext;
|
|
4508
4511
|
get isPlaying(): boolean;
|
|
4509
4512
|
get __className__(): string;
|
|
4510
|
-
constructor(track: MediaStreamTrack, userId: UID, uintId: number, store: SDKStore, player?: AgoraRTCPlayer);
|
|
4513
|
+
constructor(track: MediaStreamTrack, userId: UID, uintId: number, store: SDKStore, player?: AgoraRTCPlayer | VideoPlayer);
|
|
4511
4514
|
getStats(): RemoteVideoTrackStats;
|
|
4512
4515
|
play(element: string | HTMLElement | HTMLVideoElement, config?: VideoPlayerConfig): void;
|
|
4513
4516
|
stop(isKeepLastFrame?: boolean): void;
|
|
@@ -5577,7 +5580,7 @@ export declare type VideoEncoderConfigurationPreset = keyof typeof SUPPORT_VIDEO
|
|
|
5577
5580
|
/**
|
|
5578
5581
|
* @internal
|
|
5579
5582
|
*/
|
|
5580
|
-
declare class VideoPlayer {
|
|
5583
|
+
export declare class VideoPlayer {
|
|
5581
5584
|
trackId: string;
|
|
5582
5585
|
config: PlayerConfig;
|
|
5583
5586
|
onFirstVideoFrameDecoded?: () => void;
|
|
@@ -5587,6 +5590,7 @@ declare class VideoPlayer {
|
|
|
5587
5590
|
freezeTimeCounterList: number[];
|
|
5588
5591
|
renderFreezeAccTime: number;
|
|
5589
5592
|
renderFreezeAccTime2: number;
|
|
5593
|
+
totalFreezeTime: number;
|
|
5590
5594
|
isKeepLastFrame: boolean;
|
|
5591
5595
|
isDestroyed: boolean;
|
|
5592
5596
|
/** 计算 500ms 卡顿时间用 */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agora-js/media",
|
|
3
|
-
"version": "4.24.
|
|
3
|
+
"version": "4.24.3",
|
|
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.24.
|
|
27
|
-
"@agora-js/report": "4.24.
|
|
28
|
-
"axios": "^1.13.
|
|
26
|
+
"@agora-js/shared": "4.24.3",
|
|
27
|
+
"@agora-js/report": "4.24.3",
|
|
28
|
+
"axios": "^1.13.6",
|
|
29
29
|
"agora-rte-extension": "^1.2.4",
|
|
30
30
|
"webrtc-adapter": "8.2.0"
|
|
31
31
|
}
|
package/rtc-sdk-media_en.d.ts
CHANGED
|
@@ -845,6 +845,8 @@ export declare function detectSupportPreSub(store?: SDKStore): boolean;
|
|
|
845
845
|
|
|
846
846
|
export declare function detectSupportRestrictOwnAudio(): boolean;
|
|
847
847
|
|
|
848
|
+
export declare function detectSupportSDPEndpoint(): boolean;
|
|
849
|
+
|
|
848
850
|
export declare function detectSupportSuppressLocalAudioPlayback(): boolean;
|
|
849
851
|
|
|
850
852
|
/**
|
|
@@ -2738,6 +2740,7 @@ export declare interface RemoteAudioTrackStats {
|
|
|
2738
2740
|
export declare class RemoteDataChannel extends DataChannel implements IRemoteDataChannel {
|
|
2739
2741
|
private _messageListener;
|
|
2740
2742
|
constructor(config: IDataChannelConfig);
|
|
2743
|
+
_updateDataChannelConfig(config: IDataChannelConfig): void;
|
|
2741
2744
|
_updateOriginDataChannel(datachannel: RTCDataChannel): void;
|
|
2742
2745
|
_close(): void;
|
|
2743
2746
|
private _bandRemoteDataChannelEvents;
|
|
@@ -2827,7 +2830,7 @@ export declare class RemoteVideoTrack extends RemoteTrack implements IRemoteVide
|
|
|
2827
2830
|
protected processorContext: VideoProcessorContext;
|
|
2828
2831
|
get isPlaying(): boolean;
|
|
2829
2832
|
get __className__(): string;
|
|
2830
|
-
constructor(track: MediaStreamTrack, userId: UID, uintId: number, store: SDKStore, player?: AgoraRTCPlayer);
|
|
2833
|
+
constructor(track: MediaStreamTrack, userId: UID, uintId: number, store: SDKStore, player?: AgoraRTCPlayer | VideoPlayer);
|
|
2831
2834
|
getStats(): RemoteVideoTrackStats;
|
|
2832
2835
|
play(element: string | HTMLElement | HTMLVideoElement, config?: VideoPlayerConfig): void;
|
|
2833
2836
|
stop(isKeepLastFrame?: boolean): void;
|
|
@@ -3464,7 +3467,7 @@ export declare interface VideoEncoderConfiguration {
|
|
|
3464
3467
|
*/
|
|
3465
3468
|
export declare type VideoEncoderConfigurationPreset = keyof typeof SUPPORT_VIDEO_ENCODER_CONFIG_LIST;
|
|
3466
3469
|
|
|
3467
|
-
declare class VideoPlayer {
|
|
3470
|
+
export declare class VideoPlayer {
|
|
3468
3471
|
trackId: string;
|
|
3469
3472
|
config: PlayerConfig;
|
|
3470
3473
|
onFirstVideoFrameDecoded?: () => void;
|
|
@@ -3474,6 +3477,7 @@ declare class VideoPlayer {
|
|
|
3474
3477
|
freezeTimeCounterList: number[];
|
|
3475
3478
|
renderFreezeAccTime: number;
|
|
3476
3479
|
renderFreezeAccTime2: number;
|
|
3480
|
+
totalFreezeTime: number;
|
|
3477
3481
|
isKeepLastFrame: boolean;
|
|
3478
3482
|
isDestroyed: boolean;
|
|
3479
3483
|
private timeUpdatedCount;
|