Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

agora-rte-extension

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

agora-rte-extension - npm Package Compare versions

Comparing version 1.2.3 to 1.2.4

3

CHANGELOG.md

@@ -6,1 +6,4 @@ # v1.1.0

- Fixed some logging typos.
# v1.2.4
- Added `IExtensionLogger.setLogLevel` method to set the output log level of the extension.
- Add public static method `Extension.setLogLevel` to set the output log level of the extension.

@@ -30,2 +30,9 @@ declare interface AgoraApiExecutor<T> {

export declare type AutoAdjustConfig = {
checkDuration: number;
checkTimes: number;
targetAverageTime: number;
targetFps: number;
};
declare abstract class BaseProcessor extends EventEmitter_2 implements IBaseProcessor {

@@ -66,2 +73,4 @@ protected inputTrack?: MediaStreamTrack;

export declare function CreateAutoAdjuster(backend: 'cpu' | 'gpu', direction: 'local' | 'remote', procecssor: BaseProcessor, config: AutoAdjustConfig): IAutoAdjuster;
declare interface EventEmitter {

@@ -158,2 +167,3 @@ on(event: string, listener: Function): void;

createProcessor(): T;
static setLogLevel(level: number): void;
}

@@ -178,2 +188,12 @@

export declare interface IAutoAdjuster {
setConfig(config: AutoAdjustConfig): void;
reset(): void;
setMediaStreamTrackInfo(id: string, framerate?: number): void;
getTrackFramerate(): number;
onProcessFrame(startTime: number, endTime: number): Promise<boolean>;
shouldDisableProcessor(startTime: number, endTime: number): Promise<boolean>;
disableProcessor(): Promise<void>;
}
export declare interface IBaseProcessor extends EventEmitter {

@@ -266,2 +286,3 @@ /**

error(...args: any): void;
setLogLevel(level: number): void;
}

@@ -295,2 +316,10 @@

private hookLog?;
/**
* 设置 SDK 的日志输出级别
* @param level - SDK 日志级别依次为 NONE(4),ERROR(3),WARNING(2),INFO(1),DEBUG(0)。选择一个级别,
* 你就可以看到在该级别及该级别以上所有级别的日志信息。
*
* 例如,如果你输入代码 Logger.setLogLevel(1);,就可以看到 INFO,ERROR 和 WARNING 级别的日志信息。
*/
setLogLevel(level: number): void;
debug(...args: any): void;

@@ -297,0 +326,0 @@ info(...args: any): void;

2

dist/tsdoc-metadata.json

@@ -8,5 +8,5 @@ // This file is read by tools that parse documentation comments conforming to the TSDoc standard.

"packageName": "@microsoft/api-extractor",
"packageVersion": "7.33.5"
"packageVersion": "7.38.5"
}
]
}
{
"name": "agora-rte-extension",
"version": "1.2.3",
"version": "1.2.4",
"description": "Agora RTE Extension",

@@ -5,0 +5,0 @@ "main": "./dist/agora-rte-extension.js",

@@ -93,2 +93,14 @@ [TOC]

#### `Extension.setLogLevel`
Abstract class `Extension` has one static method `setLogLevel` :
```typescript
abstract class Extension<T extends BaseProcessor> {
public static setLogLevel(level: number): void
}
```
`AgoraRTC` developer calling `Extension.setLogLevel(level)` will set the output log level of the extension.
#### `Extension.checkCompatibility`

@@ -374,2 +386,10 @@

#### `Logger.setLogLevel`
`Logger.setLogLevel` set the output log level of the extension.
```typescript
public setLogLevel(level: number): void;
```
### Reporter

@@ -376,0 +396,0 @@

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc