zego-express-engine-electron-private 3.6.0-29708 → 3.7.0-30063
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/ZegoExpressCopyrightedMusic.js +3 -3
- package/ZegoExpressDefines.js +1 -0
- package/ZegoExpressEngine.js +20 -4
- package/ZegoExpressEngineImpl.js +4 -0
- package/ZegoExpressErrorCode.js +1 -1
- package/ZegoExpressScreenCaptureSource.js +1 -0
- package/mac/ZegoExpressNodeNative.node +0 -0
- package/mac/ZegoExpressNodeNative.node.dSYM/Contents/Resources/DWARF/ZegoExpressNodeNative.node +0 -0
- package/mac/libZegoExpressEngine.dylib +0 -0
- package/package.json +1 -1
- package/win/x64/ZegoExpressEngine.dll +0 -0
- package/win/x64/ZegoExpressNodeNative.node +0 -0
- package/win/x64/ZegoExpressNodeNative.pdb +0 -0
- package/win/x86/ZegoExpressEngine.dll +0 -0
- package/win/x86/ZegoExpressNodeNative.node +0 -0
- package/win/x86/ZegoExpressNodeNative.pdb +0 -0
|
@@ -77,11 +77,11 @@ class ZegoCopyrightedMusic extends EventEmitter {
|
|
|
77
77
|
* Get lyrics in krc format.
|
|
78
78
|
*
|
|
79
79
|
* Available since: 2.13.0
|
|
80
|
-
* Description: Get lyrics
|
|
80
|
+
* Description: Get verbatim lyrics, support parsing lyrics word by word.
|
|
81
81
|
* Use case: Used to display lyrics word by word.
|
|
82
82
|
* When to call: After initializing the copyrighted music success [initCopyrightedMusic].
|
|
83
83
|
* @param {string} krcToken - The krcToken obtained by calling requestAccompaniment.
|
|
84
|
-
* @return {Promise<Object>} - Get
|
|
84
|
+
* @return {Promise<Object>} - Get verbatim lyrics complete callback.
|
|
85
85
|
*/
|
|
86
86
|
getKrcLyricByToken(krcToken) {
|
|
87
87
|
return this.nativeCopyrightedMusic.getKrcLyricByToken({ krcToken })
|
|
@@ -189,7 +189,7 @@ class ZegoCopyrightedMusic extends EventEmitter {
|
|
|
189
189
|
* Available since: 2.15.0
|
|
190
190
|
* Description: Start the scoring function.After starting scoring, the scoring result OnCurrentPitchValueUpdate callback will be received according to the set callback time interval.
|
|
191
191
|
* Use case: Can be used to display the singing score on the view.
|
|
192
|
-
* When to call: After obtaining
|
|
192
|
+
* When to call: After obtaining verbatim lyrics and playing the accompaniment resources of copyrighted music.
|
|
193
193
|
* Restrictions: Only support use this api after [startPublishingStream].
|
|
194
194
|
* @param {string} resourceID - the resource ID corresponding to the accompaniment or accompaniment clip.
|
|
195
195
|
* @param {number} pitchValueInterval - the time interval of real-time pitch line callback, in milliseconds, the default is 50 milliseconds.
|
package/ZegoExpressDefines.js
CHANGED
|
@@ -2300,6 +2300,7 @@ const ZegoScreenCaptureSourceExceptionType = {
|
|
|
2300
2300
|
/**
|
|
2301
2301
|
* @typedef {Object} ZegoMixerImageInfo - Set the image information of a single input stream in the mux.
|
|
2302
2302
|
* @property {string} url - The image path, if not empty, the image will be displayed, otherwise, the video will be displayed. JPG and PNG formats are supported. There are 2 ways to use it: 1. URI: Provide the picture to ZEGO technical support for configuration. After the configuration is complete, the picture URI will be provided, for example: preset-id://xxx.jpg. 2. URL: Only HTTP protocol is supported.
|
|
2303
|
+
* @property {number} displayMode - Image display mode. 0: Default. Use image to replace video content when url is not null. 1: Display image based on camera status. Display image when camera is turned off. Display video content when camera is turned on (no need to clear the url parameter). 2: Display image based on the input stream is empty or not. Display image when the input stream is empty for 3 consecutive seconds. The default duration for determine a input stream is empty or not is 3 seconds. If you need change this setting, please contact ZEGO technical support. Display video content when the input stream has video data.
|
|
2303
2304
|
*/
|
|
2304
2305
|
|
|
2305
2306
|
/**
|
package/ZegoExpressEngine.js
CHANGED
|
@@ -149,9 +149,9 @@ class ZegoExpressEngine extends EventEmitter {
|
|
|
149
149
|
* Available since: 1.1.0
|
|
150
150
|
* Description: By default, SDK creates and prints log files in the App's default directory. Each log file defaults to a maximum of 5MB. Three log files are written over and over in a circular fashion. When calling this function, SDK will auto package and upload the log files to the ZEGO server.
|
|
151
151
|
* Use cases: Developers can provide a business “feedback” channel in the App. When users feedback problems, they can call this function to upload the local log information of SDK to help locate user problems.
|
|
152
|
-
* When to call: After [
|
|
153
|
-
* Restrictions:
|
|
154
|
-
* Caution: After calling this interface to upload logs, if you call [destroyEngine] or exit the App too quickly, there may be a failure.It is recommended to wait a few seconds, and then call [destroyEngine] or exit the App after receiving the upload success callback.
|
|
152
|
+
* When to call: After [createEngine].
|
|
153
|
+
* Restrictions: The frequency limit is once per minute.
|
|
154
|
+
* Caution: 1.After calling this interface to upload logs, if you call [destroyEngine] or exit the App too quickly, there may be a failure.It is recommended to wait a few seconds, and then call [destroyEngine] or exit the App after receiving the upload success callback. 2.If you want to call before [createEngine], use the [submitLog] interface.
|
|
155
155
|
*/
|
|
156
156
|
uploadLog() {
|
|
157
157
|
ZegoExpressEngineImpl.uploadLog()
|
|
@@ -453,6 +453,22 @@ class ZegoExpressEngine extends EventEmitter {
|
|
|
453
453
|
ZegoExpressEngineImpl.setAudioConfig(config)
|
|
454
454
|
}
|
|
455
455
|
|
|
456
|
+
/**
|
|
457
|
+
* Sets up the audio configurations for the specified publish channel.
|
|
458
|
+
*
|
|
459
|
+
* Available since: 1.3.4
|
|
460
|
+
* Description: You can set the combined value of the audio codec, bit rate, and audio channel through this function. If the preset value cannot meet the developer's scenario, the developer can set the parameters according to the business requirements.
|
|
461
|
+
* Default value: The default audio config refers to the default value of [ZegoAudioConfig].
|
|
462
|
+
* When to call: After the engine is created [createEngine], and before publishing [startPublishingStream].
|
|
463
|
+
* Restrictions: None.
|
|
464
|
+
* Related APIs: [getAudioConfig].
|
|
465
|
+
* @param {(ZegoAudioConfigPreset|ZegoAudioConfig)} config - Audio config.
|
|
466
|
+
* @param {ZegoPublishChannel} channel - Publish stream channel.
|
|
467
|
+
*/
|
|
468
|
+
setAudioConfigWithChannel(config, channel = ZegoPublishChannel.Main) {
|
|
469
|
+
ZegoExpressEngineImpl.setAudioConfigWithChannel(config, channel)
|
|
470
|
+
}
|
|
471
|
+
|
|
456
472
|
/**
|
|
457
473
|
* Gets the current audio configurations.
|
|
458
474
|
*
|
|
@@ -1623,7 +1639,7 @@ class ZegoExpressEngine extends EventEmitter {
|
|
|
1623
1639
|
/**
|
|
1624
1640
|
* Stop audio VAD stable state monitoring.
|
|
1625
1641
|
*
|
|
1626
|
-
* Available
|
|
1642
|
+
* Available since: 2.14.0
|
|
1627
1643
|
* Description: After calling this interface, the specified type of [onAudioVADStateUpdate] callback can no longer be received.
|
|
1628
1644
|
* When to call: None.
|
|
1629
1645
|
* Restrictions: None.
|
package/ZegoExpressEngineImpl.js
CHANGED
|
@@ -263,6 +263,10 @@ class ZegoExpressEngineImpl extends EventEmitter {
|
|
|
263
263
|
this.ZegoNativeInstance.setAudioConfig({ config })
|
|
264
264
|
}
|
|
265
265
|
|
|
266
|
+
setAudioConfigWithChannel(config, channel) {
|
|
267
|
+
this.ZegoNativeInstance.setAudioConfig({ config, channel })
|
|
268
|
+
}
|
|
269
|
+
|
|
266
270
|
getAudioConfig() {
|
|
267
271
|
return this.ZegoNativeInstance.getAudioConfig({})
|
|
268
272
|
}
|
package/ZegoExpressErrorCode.js
CHANGED
|
@@ -857,7 +857,7 @@ const ZegoErrorCode = {
|
|
|
857
857
|
/** Description: RTP timeout. <br>Cause: Not connected to the network. <br> Solutions: Please check if you can access the Internet properly. */
|
|
858
858
|
UtilitiesNetworkToolRtpTimeoutError: 1015003,
|
|
859
859
|
|
|
860
|
-
/** Description: The server side ends the network speed test. <br>Cause: Network speed test time is too long. <br> Solutions: Please stop network speed test in
|
|
860
|
+
/** Description: The server side ends the network speed test. <br>Cause: Network speed test time is too long. <br> Solutions: Please stop network speed test in 30 seconds. */
|
|
861
861
|
UtilitiesNetworkToolEngineDenied: 1015004,
|
|
862
862
|
|
|
863
863
|
/** Description: Network speed test stopped. <br>Cause: Network speed test not stopped before publishing stream. <br> Solutions: Please stop network speed test(stopNetworkSpeedTest) before publishing stream. */
|
|
@@ -109,6 +109,7 @@ class ZegoScreenCaptureSource extends EventEmitter {
|
|
|
109
109
|
* Description: The callback triggered when a screen capture source exception occurred.
|
|
110
110
|
* Trigger: This callback is triggered when an exception occurs after the screen start capture.
|
|
111
111
|
* Caution: The callback does not actually take effect until call [setEventHandler] to set.
|
|
112
|
+
* Restrictions: Only available on Windows/macOS.
|
|
112
113
|
* @property {object} result - param object
|
|
113
114
|
* @property {ZegoScreenCaptureSourceExceptionType} result.exceptionType - Capture source exception type.
|
|
114
115
|
*/
|
|
Binary file
|
package/mac/ZegoExpressNodeNative.node.dSYM/Contents/Resources/DWARF/ZegoExpressNodeNative.node
CHANGED
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|