视频会议

This commit is contained in:
wangqiong
2024-01-18 10:46:33 +08:00
parent d7f5ce05ea
commit 37a88df277
28922 changed files with 2797396 additions and 19461 deletions
+76
View File
@@ -0,0 +1,76 @@
export declare interface CDNStreamingOptions {
target: Target;
encoding?: Encoding;
mix?: Mix;
}
export declare interface Target {
publishMode: PublishMode;
streamId?: string;
appId?: number;
bizId?: number;
url?: string;
}
export declare interface Encoding {
videoWidth?: number;
videoHeight?: number;
videoBitrate?: number;
videoFramerate?: number;
videoGOP?: number;
audioSampleRate?: number;
audioBitrate?: number;
audioChannels?: 1 | 2;
}
export declare interface Mix {
backgroundColor?: number;
backgroundImage?: string;
audioMixUserList?: User[];
videoLayoutList?: VideoLayout[];
}
export declare interface User {
userId: string;
roomId: number;
strRoomId: string;
}
export declare interface VideoLayout {
fixedVideoUser: User;
fixedVideoStreamType?: TRTCStreamType;
fillMode?: 0 | 1 | 2;
width?: number;
height?: number;
locationX?: number;
locationY?: number;
zOrder?: number;
}
export declare enum TRTCStreamType {
Main = 'main',
Sub = 'sub'
}
export declare enum PublishMode {
PublishMainStreamToCDN = 'PublishMainStreamToCDN',
PublishSubStreamToCDN = 'PublishSubStreamToCDN',
PublishMixStreamToCDN = 'PublishMixStreamToCDN'
}
export declare class CDNStreaming {
static TYPE: {
PublishMode: {
PublishMainStreamToCDN: PublishMode.PublishMainStreamToCDN;
PublishSubStreamToCDN: PublishMode.PublishSubStreamToCDN;
PublishMixStreamToCDN: PublishMode.PublishMixStreamToCDN;
};
};
start(options: CDNStreamingOptions): Promise<void>;
update(options: CDNStreamingOptions): Promise<void>;
stop(options: CDNStreamingOptions): Promise<void>;
}
export { CDNStreaming };
export default CDNStreaming;
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+31
View File
@@ -0,0 +1,31 @@
{
"name": "@rtc-plugin/cdn-streaming",
"version": "5.2.1",
"description": "TRTC Web SDK 5.x CDN streaming plugin",
"main": "./cdn-streaming.esm.js",
"author": "longyuqi <longyuqi@tencent.com>",
"module": "./cdn-streaming.esm.js",
"repository": {
"type": "git",
"url": "git@github.com:LiteAVSDK/TRTC_Web.git"
},
"homepage": "https://web.sdk.qcloud.com/trtc/webrtc/v5/doc/en/tutorial-26-advanced-publish-cdn-stream.html",
"keywords": [
"webrtc",
"TRTC",
"rtc",
"call",
"video call",
"audio call",
"javascript",
"video",
"audio",
"camera",
"microphone",
"live streaming",
"real-time communication",
"cdn",
"mix transcode"
],
"types": "./cdn-streaming.esm.d.ts"
}