正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -7,14 +7,14 @@ function shell(){ | @@ -7,14 +7,14 @@ function shell(){ | ||
| 7 | 7 | ||
| 8 | shell.prototype.Recording =async(appId,uid,channel,channelKey)=>{ | 8 | shell.prototype.Recording =async(appId,uid,channel,channelKey)=>{ |
| 9 | return new Promise((resolve, reject) =>{ | 9 | return new Promise((resolve, reject) =>{ |
| 10 | - let shell =`pwd && ./Recorder_local`+ | 10 | + let shell =`cd util/Agora_Recording_SDK_for_Linux_FULL/samples/ && ./Recorder_local`+ |
| 11 | ` --appId ` +appId + | 11 | ` --appId ` +appId + |
| 12 | ` --uid ` +uid + | 12 | ` --uid ` +uid + |
| 13 | ` --channel ` + channel + | 13 | ` --channel ` + channel + |
| 14 | ` --channelKey ` + channelKey + | 14 | ` --channelKey ` + channelKey + |
| 15 | " --appliteDir \`pwd\`/../bin"; | 15 | " --appliteDir \`pwd\`/../bin"; |
| 16 | console.log(shell) | 16 | console.log(shell) |
| 17 | - callfile.exec('pwd',function(err, stdout, stderr){ | 17 | + callfile.exec(shell,function(err, stdout, stderr){ |
| 18 | console.log(arguments); | 18 | console.log(arguments); |
| 19 | if(err){ | 19 | if(err){ |
| 20 | reject(err); | 20 | reject(err); |
-
请 注册 或 登录 后发表评论