omnirtc-web 1.2.2-beta.0 → 1.2.2-peiyou.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/dist/es-omnirtc-web.js +4 -4
- package/dist/omni.d.ts +10 -8
- package/dist/omnirtc-web.js +4 -4
- package/package.json +1 -1
package/dist/es-omnirtc-web.js
CHANGED
|
@@ -82,7 +82,7 @@ var InvalidTokenError_1 = InvalidTokenError;
|
|
|
82
82
|
lib$2.InvalidTokenError = InvalidTokenError_1;
|
|
83
83
|
|
|
84
84
|
var StaticConfig = {
|
|
85
|
-
agentVersion: "OmniRTC_Web_V1.2.2-
|
|
85
|
+
agentVersion: "OmniRTC_Web_V1.2.2-peiyou.1",
|
|
86
86
|
logVersion: 1,
|
|
87
87
|
serviceType: 320,
|
|
88
88
|
logBackendUrl: "https://rtc-logs.magic-school.com/stream.gif"
|
|
@@ -13812,9 +13812,9 @@ var handleExternalVideoTrackInitConfig = function (engine, config, applyForPubli
|
|
|
13812
13812
|
currSettings = mediaStreamTrack.getSettings();
|
|
13813
13813
|
externalVideoEncoderConfig = {
|
|
13814
13814
|
maxKbps: config.bitrateMax || 600,
|
|
13815
|
-
frameRate:
|
|
13816
|
-
width: currSettings.width,
|
|
13817
|
-
height: currSettings.height,
|
|
13815
|
+
frameRate: currSettings.frameRate || 15,
|
|
13816
|
+
width: currSettings.width || 640,
|
|
13817
|
+
height: currSettings.height || 480,
|
|
13818
13818
|
};
|
|
13819
13819
|
if (config.optimizationMode) {
|
|
13820
13820
|
externalVideoEncoderConfig['contentHint'] = config.optimizationMode;
|
package/dist/omni.d.ts
CHANGED
|
@@ -294,6 +294,8 @@ export declare interface ClientConfig {
|
|
|
294
294
|
httpRetryConfig?: RetryConfiguration;
|
|
295
295
|
|
|
296
296
|
websocketRetryConfig?: RetryConfiguration;
|
|
297
|
+
|
|
298
|
+
streamPrefix?: string;
|
|
297
299
|
}
|
|
298
300
|
|
|
299
301
|
|
|
@@ -466,10 +468,10 @@ export declare function event_user_joined(user: IOmniRTCRemoteUser): void;
|
|
|
466
468
|
export declare function event_user_left(user: IOmniRTCRemoteUser, reason: string): void;
|
|
467
469
|
|
|
468
470
|
|
|
469
|
-
export declare function event_user_published(user: IOmniRTCRemoteUser, mediaType: "audio" | "video" | "screen"): void;
|
|
471
|
+
export declare function event_user_published(user: IOmniRTCRemoteUser, mediaType: "audio" | "video" | "screen", streamId: string): void;
|
|
470
472
|
|
|
471
473
|
|
|
472
|
-
export declare function event_user_unpublished(user: IOmniRTCRemoteUser, mediaType: "audio" | "video" | "screen"): void;
|
|
474
|
+
export declare function event_user_unpublished(user: IOmniRTCRemoteUser, mediaType: "audio" | "video" | "screen", streamId: string): void;
|
|
473
475
|
|
|
474
476
|
|
|
475
477
|
export declare function event_video_element_visible_status(data?: CheckVideoVisibleResult): void;
|
|
@@ -628,13 +630,11 @@ export declare interface IOmniRTCClient extends EventEmitter {
|
|
|
628
630
|
|
|
629
631
|
unpublish(tracks?: ILocalTrack | ILocalTrack[]): Promise<void>;
|
|
630
632
|
|
|
631
|
-
subscribe(
|
|
632
|
-
|
|
633
|
-
subscribe(user: IOmniRTCRemoteUser, mediaType: "audio"): Promise<IRemoteAudioTrack>;
|
|
633
|
+
subscribe(streamId: string, mediaType: "video"): Promise<IRemoteVideoTrack>;
|
|
634
634
|
|
|
635
|
-
subscribe(
|
|
635
|
+
subscribe(streamId: string, mediaType: "audio"): Promise<IRemoteAudioTrack>;
|
|
636
636
|
|
|
637
|
-
subscribe(
|
|
637
|
+
subscribe(streamId: string, mediaType: "video" | "audio"): Promise<IRemoteTrack>;
|
|
638
638
|
// massSubscribe(subscribeList: {
|
|
639
639
|
// user: IOmniRTCRemoteUser;
|
|
640
640
|
// mediaType: "audio" | "video";
|
|
@@ -645,7 +645,7 @@ export declare interface IOmniRTCClient extends EventEmitter {
|
|
|
645
645
|
// error?: OmniRTCError;
|
|
646
646
|
// }[]>;
|
|
647
647
|
|
|
648
|
-
unsubscribe(
|
|
648
|
+
unsubscribe(streamId: string, mediaType?: "video" | "audio"): Promise<void>;
|
|
649
649
|
// massUnsubscribe(unsubscribeList: {
|
|
650
650
|
// user: IOmniRTCRemoteUser;
|
|
651
651
|
// mediaType?: "audio" | "video";
|
|
@@ -732,6 +732,8 @@ export declare interface IOmniRTCRemoteUser {
|
|
|
732
732
|
|
|
733
733
|
screenTrack?: IRemoteVideoTrack;
|
|
734
734
|
|
|
735
|
+
screenAudioTrack?: IRemoteAudioTrack;
|
|
736
|
+
|
|
735
737
|
hasAudio: boolean;
|
|
736
738
|
|
|
737
739
|
hasVideo: boolean;
|
package/dist/omnirtc-web.js
CHANGED
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
lib$2.InvalidTokenError = InvalidTokenError_1;
|
|
89
89
|
|
|
90
90
|
var StaticConfig = {
|
|
91
|
-
agentVersion: "OmniRTC_Web_V1.2.2-
|
|
91
|
+
agentVersion: "OmniRTC_Web_V1.2.2-peiyou.1",
|
|
92
92
|
logVersion: 1,
|
|
93
93
|
serviceType: 320,
|
|
94
94
|
logBackendUrl: "https://rtc-logs.magic-school.com/stream.gif"
|
|
@@ -13818,9 +13818,9 @@
|
|
|
13818
13818
|
currSettings = mediaStreamTrack.getSettings();
|
|
13819
13819
|
externalVideoEncoderConfig = {
|
|
13820
13820
|
maxKbps: config.bitrateMax || 600,
|
|
13821
|
-
frameRate:
|
|
13822
|
-
width: currSettings.width,
|
|
13823
|
-
height: currSettings.height,
|
|
13821
|
+
frameRate: currSettings.frameRate || 15,
|
|
13822
|
+
width: currSettings.width || 640,
|
|
13823
|
+
height: currSettings.height || 480,
|
|
13824
13824
|
};
|
|
13825
13825
|
if (config.optimizationMode) {
|
|
13826
13826
|
externalVideoEncoderConfig['contentHint'] = config.optimizationMode;
|