trtc-sdk-v5 5.7.1-beta.7 → 5.7.1-beta.9
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/core.d.ts +4 -14
- package/index.d.ts +1815 -1818
- package/package.json +1 -1
- package/plugins/cdn-streaming/cdn-streaming.esm.js +1 -1
- package/plugins/cdn-streaming/cdn-streaming.iife.js +1 -1
- package/plugins/cdn-streaming/package.json +1 -1
- package/plugins/video-effect/basic-beauty/basic-beauty.esm.js +2 -2
- package/plugins/video-effect/basic-beauty/basic-beauty.iife.js +2 -2
- package/plugins/video-effect/basic-beauty/package.json +1 -1
- package/plugins/video-effect/beauty/package.json +1 -1
- package/plugins/video-effect/virtual-background/package.json +1 -1
- package/plugins/video-effect/virtual-background/virtual-background.esm.js +10 -10
- package/plugins/video-effect/virtual-background/virtual-background.iife.js +10 -10
- package/plugins/video-effect/watermark/package.json +1 -1
- package/plugins/video-effect/watermark/watermark.esm.js +1 -1
- package/plugins/video-effect/watermark/watermark.iife.js +1 -1
- package/trtc.esm.js +22 -22
- package/trtc.js +1 -1
- package/plugins/cross-room/cross-room.esm.d.ts +0 -27
- package/plugins/cross-room/cross-room.esm.js +0 -1
- package/plugins/cross-room/cross-room.iife.js +0 -1
- package/plugins/cross-room/package.json +0 -30
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export interface StartCrossRoomOption {
|
|
2
|
-
roomId?: number,
|
|
3
|
-
strRoomId?: string,
|
|
4
|
-
userId?: string
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
interface UpdateCrossRoomOptionItem extends StartCrossRoomOption {
|
|
8
|
-
muteAudio: boolean,
|
|
9
|
-
muteVideo: boolean,
|
|
10
|
-
muteSubStream: boolean,
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export interface UpdateCrossRoomOption {
|
|
14
|
-
updateList: UpdateCrossRoomOptionItem[]
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export interface StopCrossRoomOption {
|
|
18
|
-
roomId?: number,
|
|
19
|
-
strRoomId?: string,
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
export declare class CrossRoom {
|
|
24
|
-
start(option: StartCrossRoomOption): Promise<void>;
|
|
25
|
-
update(option: UpdateCrossRoomOption): Promise<void>;
|
|
26
|
-
stop(option?: StopCrossRoomOption): Promise<void>;
|
|
27
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var D=Object.defineProperty,U=Object.defineProperties;var C=Object.getOwnPropertyDescriptors;var S=Object.getOwnPropertySymbols;var N=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable;var p=(t,e,r)=>e in t?D(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,m=(t,e)=>{for(var r in e||(e={}))N.call(e,r)&&p(t,r,e[r]);if(S)for(var r of S(e))y.call(e,r)&&p(t,r,e[r]);return t},l=(t,e)=>U(t,C(e));var d=(t,e,r)=>(p(t,typeof e!="symbol"?e+"":e,r),r);var b={properties:{roomId:{type:"number"},strRoomId:{type:"string"}}},c={name:"option",required:!0,properties:l(m({},b.properties),{userId:{type:"string"}})},R={name:"option",required:!0,properties:{updateList:{type:"array",required:!0,arrayItem:{required:!0,type:"object",properties:l(m({},c.properties),{userId:{required:!1,type:"string"},muteAudio:{type:"boolean"},muteVideo:{type:"boolean"},muteSubStream:{type:"boolean"}})}}}},E={name:"option",properties:m({},b.properties)};var u=class u{constructor(e){this.core=e;d(this,"updateSeq",0)}getName(){return u.Name}getAlias(){return"crs-r"}getGroup(e){var a;let r=(e==null?void 0:e.userId)||((a=e==null?void 0:e.updateList)==null?void 0:a[0].userId)||"";return r||(e?e.updateList?String(e.updateList[0].roomId)||e.updateList[0].strRoomId||"":String(e.roomId)||e.strRoomId||"":"*")}getValidateRule(e){switch(e){case"start":return c;case"update":return R;case"stop":return E}}async start({roomId:e,strRoomId:r,userId:a}){let{RtcError:i,ErrorCode:o}=this.core.errorModule;if(!this.core.room.sendSignalMessage)throw new i({code:o.ENV_NOT_SUPPORTED});let s=e||r,n=await this.core.room.sendSignalMessage({command:"connect_other_room",responseCommand:8209,data:{roomId:s,userId:a,localRoomId:a?void 0:this.core.room.roomId},retries:3});if(n.data.code!==0)throw new i({code:o.SERVER_ERROR,extraCode:n.data.code,message:n.data.message})}async update({updateList:e}){var s;let{RtcError:r,ErrorCode:a}=this.core.errorModule;if(!this.core.room.sendSignalMessage)throw new r({code:a.ENV_NOT_SUPPORTED});let i=e.find(n=>n.userId)?0:1,o=await this.core.room.sendSignalMessage({command:"update_other_room_forward_mode",responseCommand:8213,data:{seq:++this.updateSeq,operationType:i,updateList:e.map(({roomId:n,strRoomId:g,userId:O,muteAudio:_,muteVideo:A,muteSubStream:I})=>({roomId:n||g,userId:O,muteAudio:_,muteVideo:A,muteSubStream:I}))},retries:3});if(o.data.data.expectSeq)return this.updateSeq=o.data.data.expectSeq,this.update({updateList:e});if(o.data.code!==0)throw new r({code:a.SERVER_ERROR,extraCode:o.data.code,message:o.data.message});if(((s=o.data.data.errorList)==null?void 0:s.length)>0)throw new r({code:a.UNKNOWN_ERROR,message:o.data.data.errorList[0].message})}async stop({roomId:e,strRoomId:r}={}){let{RtcError:a,ErrorCode:i}=this.core.errorModule;if(!this.core.room.sendSignalMessage)throw new a({code:i.ENV_NOT_SUPPORTED});let o=e||r,s=await this.core.room.sendSignalMessage({command:"disconnect_other_room",responseCommand:8211,data:{roomId:o,localRoomId:this.core.room.roomId},retries:3});if(s.data.code!==0)throw new a({code:i.SERVER_ERROR,extraCode:s.data.code,message:s.data.message})}destroy(){}};d(u,"Name","CrossRoom");var T=u;export{T as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var CrossRoom=(()=>{var m=Object.defineProperty,C=Object.defineProperties,N=Object.getOwnPropertyDescriptor,y=Object.getOwnPropertyDescriptors,x=Object.getOwnPropertyNames,b=Object.getOwnPropertySymbols;var R=Object.prototype.hasOwnProperty,P=Object.prototype.propertyIsEnumerable;var c=(a,e,r)=>e in a?m(a,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):a[e]=r,d=(a,e)=>{for(var r in e||(e={}))R.call(e,r)&&c(a,r,e[r]);if(b)for(var r of b(e))P.call(e,r)&&c(a,r,e[r]);return a},T=(a,e)=>C(a,y(e));var h=(a,e)=>{for(var r in e)m(a,r,{get:e[r],enumerable:!0})},f=(a,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of x(e))!R.call(a,t)&&t!==r&&m(a,t,{get:()=>e[t],enumerable:!(o=N(e,t))||o.enumerable});return a};var L=a=>f(m({},"__esModule",{value:!0}),a);var u=(a,e,r)=>(c(a,typeof e!="symbol"?e+"":e,r),r);var k={};h(k,{default:()=>p});var E={properties:{roomId:{type:"number"},strRoomId:{type:"string"}}},S={name:"option",required:!0,properties:T(d({},E.properties),{userId:{type:"string"}})},g={name:"option",required:!0,properties:{updateList:{type:"array",required:!0,arrayItem:{required:!0,type:"object",properties:T(d({},S.properties),{userId:{required:!1,type:"string"},muteAudio:{type:"boolean"},muteVideo:{type:"boolean"},muteSubStream:{type:"boolean"}})}}}},O={name:"option",properties:d({},E.properties)};var l=class l{constructor(e){this.core=e;u(this,"updateSeq",0)}getName(){return l.Name}getAlias(){return"crs-r"}getGroup(e){var o;let r=(e==null?void 0:e.userId)||((o=e==null?void 0:e.updateList)==null?void 0:o[0].userId)||"";return r||(e?e.updateList?String(e.updateList[0].roomId)||e.updateList[0].strRoomId||"":String(e.roomId)||e.strRoomId||"":"*")}getValidateRule(e){switch(e){case"start":return S;case"update":return g;case"stop":return O}}async start({roomId:e,strRoomId:r,userId:o}){let{RtcError:t,ErrorCode:s}=this.core.errorModule;if(!this.core.room.sendSignalMessage)throw new t({code:s.ENV_NOT_SUPPORTED});let i=e||r,n=await this.core.room.sendSignalMessage({command:"connect_other_room",responseCommand:8209,data:{roomId:i,userId:o,localRoomId:o?void 0:this.core.room.roomId},retries:3});if(n.data.code!==0)throw new t({code:s.SERVER_ERROR,extraCode:n.data.code,message:n.data.message})}async update({updateList:e}){var i;let{RtcError:r,ErrorCode:o}=this.core.errorModule;if(!this.core.room.sendSignalMessage)throw new r({code:o.ENV_NOT_SUPPORTED});let t=e.find(n=>n.userId)?0:1,s=await this.core.room.sendSignalMessage({command:"update_other_room_forward_mode",responseCommand:8213,data:{seq:++this.updateSeq,operationType:t,updateList:e.map(({roomId:n,strRoomId:_,userId:A,muteAudio:I,muteVideo:D,muteSubStream:U})=>({roomId:n||_,userId:A,muteAudio:I,muteVideo:D,muteSubStream:U}))},retries:3});if(s.data.data.expectSeq)return this.updateSeq=s.data.data.expectSeq,this.update({updateList:e});if(s.data.code!==0)throw new r({code:o.SERVER_ERROR,extraCode:s.data.code,message:s.data.message});if(((i=s.data.data.errorList)==null?void 0:i.length)>0)throw new r({code:o.UNKNOWN_ERROR,message:s.data.data.errorList[0].message})}async stop({roomId:e,strRoomId:r}={}){let{RtcError:o,ErrorCode:t}=this.core.errorModule;if(!this.core.room.sendSignalMessage)throw new o({code:t.ENV_NOT_SUPPORTED});let s=e||r,i=await this.core.room.sendSignalMessage({command:"disconnect_other_room",responseCommand:8211,data:{roomId:s,localRoomId:this.core.room.roomId},retries:3});if(i.data.code!==0)throw new o({code:t.SERVER_ERROR,extraCode:i.data.code,message:i.data.message})}destroy(){}};u(l,"Name","CrossRoom");var p=l;return L(k);})().default;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@rtc-plugin/cross-room",
|
|
3
|
-
"version": "5.7.0",
|
|
4
|
-
"description": "TRTC Web SDK 5.x Cross Room plugin",
|
|
5
|
-
"main": "./cross-room.esm.js",
|
|
6
|
-
"author": "rychouwei <rychouwei@tencent.com>",
|
|
7
|
-
"module": "./cross-room.esm.js",
|
|
8
|
-
"repository": {
|
|
9
|
-
"type": "git",
|
|
10
|
-
"url": "git@github.com:LiteAVSDK/TRTC_Web.git"
|
|
11
|
-
},
|
|
12
|
-
"homepage": "https://web.sdk.qcloud.com/trtc/webrtc/v5/doc/en/tutorial-30-advanced-cross-room-link.html",
|
|
13
|
-
"keywords": [
|
|
14
|
-
"webrtc",
|
|
15
|
-
"TRTC",
|
|
16
|
-
"rtc",
|
|
17
|
-
"call",
|
|
18
|
-
"video call",
|
|
19
|
-
"audio call",
|
|
20
|
-
"javascript",
|
|
21
|
-
"video",
|
|
22
|
-
"audio",
|
|
23
|
-
"camera",
|
|
24
|
-
"microphone",
|
|
25
|
-
"live streaming",
|
|
26
|
-
"real-time communication",
|
|
27
|
-
"cross-room"
|
|
28
|
-
],
|
|
29
|
-
"types": "./cross-room.esm.d.ts"
|
|
30
|
-
}
|