miniprogram-zego
Advanced tools
Comparing version 1.2.0 to 1.3.0
{ | ||
"name": "miniprogram-zego", | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"description": "zego miniprogram sdk", | ||
@@ -5,0 +5,0 @@ "main": "./jZego-wx.js", |
### 日志更新 | ||
### 2019-09-29(version 1.3.0) | ||
1. 修复主播收到自身流删除问题 | ||
2. 新增转码功能(VP8、H264) | ||
### 2019-08-20(version 1.2.0) | ||
@@ -5,0 +9,0 @@ 1. 新增可用性检测接口isSupportLive |
import { Common } from "./common"; | ||
import { ChatInfo, Config, ERRO, MessageInfo, StreamInfo, StreamQuality, UserInfo } from "../zego.entity"; | ||
import { ChatInfo, Config, ERRO, MessageInfo, StreamInfo, StreamQuality, UserInfo, CdnPushConfig } from "../zego.entity"; | ||
export declare abstract class BaseCenter extends Common { | ||
@@ -51,2 +51,3 @@ constructor(); | ||
stopMixStream(mixStreamConfig: any, successCallback: any, errorCallback: any): boolean; | ||
publishTarget(cdnPushConfig: CdnPushConfig, success: Function, error: Function): void; | ||
updateStreamExtraInfo(streamid: string, extraInfo: string): boolean; | ||
@@ -53,0 +54,0 @@ onStreamUrlUpdate(streamid: string, url: string, type: string): void; |
@@ -74,2 +74,3 @@ import { ENUM_RUN_STATE, LinkedList } from "../zego.entity"; | ||
audioBitRate: number; | ||
cdnSeq: number; | ||
constructor(); | ||
@@ -76,0 +77,0 @@ isLogin(): boolean; |
import { SocketCenter } from "./socketCenter"; | ||
import { StateCenter } from "./stateCenter"; | ||
import { CdnPushConfig } from "../zego.entity"; | ||
import { Logger } from "../zego.logger"; | ||
@@ -36,4 +37,5 @@ export declare class StreamHandler { | ||
updateMixStream(mixStreamConfig: any, successCallback: any, errorCallback: any): boolean; | ||
publishTarget(cdnPushConfig: CdnPushConfig, success: Function, error: Function): void; | ||
stopMixStream(mixStreamConfig: any, successCallback: any, errorCallback: any): boolean; | ||
updateStreamExtraInfo(streamid: string, extraInfo: string): boolean; | ||
} |
@@ -30,2 +30,11 @@ import { ZegoSignal } from "./zego.signal"; | ||
} | ||
export interface UsabilityDedection { | ||
webRtc: boolean; | ||
capture: boolean; | ||
videoDecodeType: { | ||
H264: boolean; | ||
VP8: boolean; | ||
}; | ||
screenSharing: boolean; | ||
} | ||
export declare class ListNode { | ||
@@ -355,7 +364,7 @@ _id: number; | ||
audio: boolean; | ||
audioInput: string; | ||
audioInput?: string; | ||
video: boolean; | ||
facingMode?: string; | ||
videoInput: string; | ||
videoQuality: QUALITYLEVEL; | ||
videoInput?: string; | ||
videoQuality?: QUALITYLEVEL; | ||
horizontal: boolean; | ||
@@ -424,2 +433,7 @@ externalCapture?: boolean; | ||
} | ||
export interface CdnPushConfig { | ||
type: string; | ||
streamId: string; | ||
pushUrl: string; | ||
} | ||
export declare enum ENUM_PLAY_SOURCE_TYPE { | ||
@@ -426,0 +440,0 @@ auto = 0, |
@@ -35,2 +35,3 @@ import { Config } from "../common/zego.entity"; | ||
static isSupportH264(sucCall: any, errCall: any): void; | ||
static supportDetection(screenShotReady: boolean, success: Function, error: Function): void; | ||
static compareVersion(v1: any, v2: any): 1 | 0 | -1; | ||
@@ -37,0 +38,0 @@ static isSupportLive(sucCall: any, errCall: any): void; |
@@ -74,5 +74,7 @@ /// <reference path="../../types/global.d.ts" /> | ||
filterStreamList(streamId?: string): any[]; | ||
voiceChange(mult: number, streamid: string): boolean; | ||
voiceBack(streamid: string): void; | ||
static isSupportWebrtc(): boolean; | ||
static isSupportH264(sucCall: any, errCall: any): void; | ||
static supportVideoCodeType(sucCall: any, errCall: any): void; | ||
static supportDetection(success: Function, error: Function): void; | ||
enumDevices(deviceInfoCallback: any, error: any): void; | ||
@@ -79,0 +81,0 @@ static enumDevices(deviceInfoCallback: any, error: any): void; |
@@ -21,3 +21,7 @@ import { PlayOption } from '../common/zego.entity'; | ||
lastPlayStats: { | ||
audioPacketsLost: number; | ||
videoPacketsLost: number; | ||
time: number; | ||
audioTime: number; | ||
videoTime: number; | ||
audioBytesReceived: number; | ||
@@ -70,2 +74,3 @@ videoBytesReceived: number; | ||
private getPlayStats; | ||
private getNetQuality; | ||
private uploadPlayQuality; | ||
@@ -72,0 +77,0 @@ private onRecvResetSession; |
@@ -7,2 +7,3 @@ import { ZegoDataReport } from "../common/zego.datareport"; | ||
import { ZegoHTMLAudioElement, ZegoVideoDecodeType } from '../../types/index'; | ||
import { pitchUtil } from '../util/pitchUtil'; | ||
export declare class ZegoPublish { | ||
@@ -35,2 +36,3 @@ logger: Logger; | ||
videoInfo: VideoInfo; | ||
mediaStreamConfig: any; | ||
offerSeq: number; | ||
@@ -44,2 +46,4 @@ streamId: string; | ||
closeSessionSignal: boolean; | ||
micTrack: MediaStreamTrack; | ||
pitchEffect: pitchUtil; | ||
audioBitRate: number; | ||
@@ -54,3 +58,3 @@ localSdpRevert: boolean; | ||
private shouldSendCloseSession; | ||
startPublish(streamId: string, localStream: MediaStream, videoInfo: VideoInfo, playOption?: PlayOption): void; | ||
startPublish(streamId: string, localStream: MediaStream, videoInfo: VideoInfo, mediaStreamConfig: any, playOption?: PlayOption): void; | ||
onCreatePublishSessionSuccess(data: any): void; | ||
@@ -87,2 +91,4 @@ onCreateOfferSuccess(desc: { | ||
stopMixingAudio(): boolean; | ||
voiceChange(mult: number): boolean; | ||
voiceBack(): void; | ||
} |
@@ -1,7 +0,7 @@ | ||
import { ZegoDataReport } from "../common/zego.datareport"; | ||
import { ZegoPreview } from "./zego.preview"; | ||
import { MediaStreamConstraints, PlayOption, SignalInfo } from "../common/zego.entity"; | ||
import { ZegoStreamCenter } from "../common/ZegoStreamCenter"; | ||
import { LoggerWeb } from "./zego.logger.webrtc"; | ||
import { StateCenter } from "../common/clientBase/stateCenter"; | ||
import { ZegoDataReport } from '../common/zego.datareport'; | ||
import { ZegoPreview } from './zego.preview'; | ||
import { MediaStreamConstraints, PlayOption, SignalInfo } from '../common/zego.entity'; | ||
import { ZegoStreamCenter } from '../common/ZegoStreamCenter'; | ||
import { LoggerWeb } from './zego.logger.webrtc'; | ||
import { StateCenter } from '../common/clientBase/stateCenter'; | ||
export declare class ZegoStreamCenterWeb extends ZegoStreamCenter { | ||
@@ -23,2 +23,3 @@ logger: LoggerWeb; | ||
token: string; | ||
server: string; | ||
constructor(log: LoggerWeb, stateCenter: StateCenter); | ||
@@ -25,0 +26,0 @@ onSignalDisconnected(server: any): void; |
Sorry, the diff of this file is too big to display
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
1985
38
0
189430