miniprogram-zego-express
Advanced tools
Comparing version 1.1.1 to 1.2.0
{ | ||
"name": "miniprogram-zego-express", | ||
"version": "1.1.1", | ||
"version": "1.2.0", | ||
"description": "zego miniprogram express sdk", | ||
@@ -5,0 +5,0 @@ "main": "./ZegoExpressMiniProgram.js", |
@@ -12,1 +12,6 @@ ### 日志更新 | ||
3. 对齐各端接口,接口命名、参数命名、取值等统一 | ||
### 2020-03-31(version 1.2.0) | ||
1. 增加房间弹幕消息功能、自定义信令 | ||
2. 优化混流接口 |
@@ -56,9 +56,9 @@ import { Common } from './common'; | ||
}>; | ||
addPublishCDNURL(streamID: string, signature: string, targetURL: string): Promise<{ | ||
addPublishCdnUrl(streamID: string, signature: string, targetURL: string): Promise<{ | ||
errorCode: number; | ||
}>; | ||
removePublishCDNURL(streamID: string, signature: string, targetURL: string): Promise<{ | ||
removePublishCdnUrl(streamID: string, signature: string, targetURL: string): Promise<{ | ||
errorCode: number; | ||
}>; | ||
clearPublishCDNURL(streamID: string, signature: string, targetURL: string): Promise<{ | ||
clearPublishCdnUrl(streamID: string, signature: string, targetURL: string): Promise<{ | ||
errorCode: number; | ||
@@ -65,0 +65,0 @@ }>; |
@@ -57,3 +57,2 @@ import { ZegoSignal } from './zego.signal'; | ||
userUpdate?: boolean; | ||
authToken?: string; | ||
} | ||
@@ -411,3 +410,3 @@ export interface CapabilityDetection { | ||
} | MediaStreamConstraints | boolean; | ||
external?: { | ||
custom?: { | ||
source: HTMLMediaElement | MediaStream; | ||
@@ -414,0 +413,0 @@ bitRate?: number; |
@@ -1,2 +0,1 @@ | ||
import { ERRO } from '../common/zego.entity'; | ||
import { Logger } from '../common/zego.logger'; | ||
@@ -40,3 +39,3 @@ import { StateCenter } from '../common/clientBase/stateCenter'; | ||
static uuid(len?: number, radix?: number): string; | ||
static supportDetection(screenShotReady: boolean, success: Function, error: (err: ERRO) => void): Promise<void>; | ||
static supportDetection(screenShotReady: boolean, success: Function): Promise<void>; | ||
static compareVersion(v1: string[] | string, v2: string | string[]): 0 | 1 | -1; | ||
@@ -54,4 +53,4 @@ static isSupportLive(sucCall: { | ||
static supportVideoCodeType(sucCall: { | ||
(videoCodec: any): void; | ||
(arg0: { | ||
(rtcCodec: { | ||
webRTC: boolean; | ||
H264: boolean; | ||
@@ -61,7 +60,3 @@ VP8: boolean; | ||
H265: boolean; | ||
}): void; | ||
}, errCall: { | ||
(err: any): void; | ||
(arg0: any): void; | ||
(arg0: boolean): void; | ||
}, error?: any): void; | ||
}): void; | ||
@@ -68,0 +63,0 @@ static inlineWorker(func: Function): Worker | null; |
@@ -66,2 +66,3 @@ import { webPlayOption, ERRO, ENUM_BROADCASTER_STATUS } from '../common/zego.entity'; | ||
waittingConnectedInerval: number; | ||
tryingNexitSignal: boolean; | ||
constructor(log: Logger, signal: ZegoSignal | null, dataReport: ZegoDataReport, qualityTimeInterval: number, streamCenter: ZegoStreamCenterWeb); | ||
@@ -68,0 +69,0 @@ startPlay(streamId: string, success: (stream: MediaStream) => void, playOption?: webPlayOption): void; |
@@ -62,2 +62,3 @@ import { ZegoDataReport } from '../common/zego.datareport'; | ||
waittingConnectedInerval: number; | ||
tryingNexitSignal: boolean; | ||
constructor(log: LoggerWeb, signal: ZegoSignal | null, dataReport: ZegoDataReport, qualityTimeInterval: number, streamCenter: ZegoStreamCenterWeb); | ||
@@ -98,3 +99,3 @@ private publishStateUpdateError; | ||
stopPublish(): void; | ||
onPublishStateUpdate(type: number, streamId: string | null, error?: ERRO | undefined): void; | ||
onPublishStateUpdate(type: number, streamId: string | null, error: ERRO): void; | ||
onPublishQualityUpdate(streamId: string | null, quality: any): void; | ||
@@ -101,0 +102,0 @@ onDisconnect(): void; |
@@ -39,3 +39,3 @@ import { ZegoDataReport } from '../common/zego.datareport'; | ||
enableCamera(localStream: MediaStream, enable: boolean): boolean; | ||
startPreview(mediaStreamConstraints: Constraints['camera'] | Constraints['external'], success: Function, error: (err: ERRO) => void): boolean; | ||
startPreview(mediaStreamConstraints: Constraints['camera'] | Constraints['custom'], success: Function, error: (err: ERRO) => void): boolean; | ||
stopPreview(localStream: MediaStream): boolean; | ||
@@ -42,0 +42,0 @@ setPublishStateStart(streamid: string, localStream: MediaStream, publishOption: webPublishOption): boolean; |
Sorry, the diff of this file is too big to display
16
217874
2656