@tencentcloud/trtc-component-wx 0.0.30 → 0.0.32-beta.0
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/copy_to_roomkit.js +15 -15
- package/miniprogram_dist/trtc-pusher.wxml +1 -0
- package/package.json +2 -2
- package/src/trtc-pusher.wxml +1 -0
package/copy_to_roomkit.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
const fs = require('fs')
|
|
2
|
+
const path = require('path')
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
const sourceDir = '/Users/connor/Desktop/work/TRTCCloud-wx/trtc-component-wx/miniprogram_dist'
|
|
5
|
+
const targetDir = '/Users/connor/Desktop/TUIRoomEngine/samples/tui-room-uniapp/dist/dev/mp-weixin/node_modules/@tencentcloud/trtc-component-wx/miniprogram_dist'
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
fs.readdir(sourceDir, (err, files) => {
|
|
8
|
+
if (err) throw err
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
files.forEach((file) => {
|
|
11
|
+
const sourceFile = path.join(sourceDir, file)
|
|
12
|
+
const targetFile = path.join(targetDir, file)
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
14
|
+
fs.copyFile(sourceFile, targetFile, (err) => {
|
|
15
|
+
if (err) throw err
|
|
16
|
+
console.log(`${sourceFile} was copied to ${targetFile}`)
|
|
17
|
+
})
|
|
18
|
+
})
|
|
19
|
+
})
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
audio-quality="{{pusher.audioQuality}}" audio-volume-type="{{pusher.audioVolumeType}}"
|
|
12
12
|
audio-reverb-type="{{pusher.audioReverbType}}" waiting-image="{{pusher.waitingImage}}"
|
|
13
13
|
beauty-style="{{pusher.beautyStyle}}" fps="{{pusher.fps}}" filter="{{pusher.filter}}"
|
|
14
|
+
audio-quality="{{pusher.audioQuality}}"
|
|
14
15
|
bindstatechange="_pusherStateChangeHandler" bindnetstatus="_pusherNetStatusHandler"
|
|
15
16
|
binderror="_pusherErrorHandler" bindbgmstart="_pusherBGMStartHandler"
|
|
16
17
|
bindbgmprogress="_pusherBGMProgressHandler" bindbgmcomplete="_pusherBGMCompleteHandler"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tencentcloud/trtc-component-wx",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.32-beta.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "miniprogram_dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -67,6 +67,6 @@
|
|
|
67
67
|
"webpack-node-externals": "^1.7.2"
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
|
-
"@tencentcloud/trtc-cloud-wx": "0.0.
|
|
70
|
+
"@tencentcloud/trtc-cloud-wx": "0.0.24-beta.0"
|
|
71
71
|
}
|
|
72
72
|
}
|
package/src/trtc-pusher.wxml
CHANGED
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
audio-quality="{{pusher.audioQuality}}" audio-volume-type="{{pusher.audioVolumeType}}"
|
|
12
12
|
audio-reverb-type="{{pusher.audioReverbType}}" waiting-image="{{pusher.waitingImage}}"
|
|
13
13
|
beauty-style="{{pusher.beautyStyle}}" fps="{{pusher.fps}}" filter="{{pusher.filter}}"
|
|
14
|
+
audio-quality="{{pusher.audioQuality}}"
|
|
14
15
|
bindstatechange="_pusherStateChangeHandler" bindnetstatus="_pusherNetStatusHandler"
|
|
15
16
|
binderror="_pusherErrorHandler" bindbgmstart="_pusherBGMStartHandler"
|
|
16
17
|
bindbgmprogress="_pusherBGMProgressHandler" bindbgmcomplete="_pusherBGMCompleteHandler"
|