Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
standalone-anyremote
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
qlintonger xeno
standalone-anyremote
Commits
3d4146de
Commit
3d4146de
authored
May 11, 2024
by
qlintonger xeno
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
录制+1
parent
29b7f77d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
12 deletions
+7
-12
anyremote/agoraHandle.js
+5
-10
src/main.ts
+2
-2
No files found.
anyremote/agoraHandle.js
View file @
3d4146de
...
...
@@ -569,12 +569,8 @@ export class AgoraHandle {
const
uid_screen
=
userStates
.
value
.
currentUserId
const
record_mode
=
'1'
const
reqData
=
{
appid
:
this
.
agoraOptions
.
appId
,
channel_id
,
uid_screen
,
callback_url
:
this
.
recordConfig
.
callBackUrl
,
record_mode
,
file_domain
:
this
.
recordConfig
.
fileDomain
channelId
:
channel_id
,
userId
:
uid_screen
,
};
this
.
currentRecordingData
=
{
channel_id
,
uid_screen
,
record_mode
...
...
@@ -590,8 +586,7 @@ export class AgoraHandle {
)
const
res
=
await
resp
.
json
()
console
.
log
(
'开始录制返回结果'
,
res
)
if
(
res
.
success
)
{
chatChannelState
.
value
.
recordSid
=
res
.
data
.
sid
;
if
(
res
.
code
.
toString
()
===
'200'
)
{
this
.
AnyRemote
.
sendWSFromCall
(
'-2'
,
'Recording'
)
return
true
}
...
...
@@ -602,7 +597,7 @@ export class AgoraHandle {
const
{
channel_id
,
uid_screen
,
record_mode
}
=
this
.
currentRecordingData
const
reqData
=
{
appid
:
this
.
agoraOptions
.
appId
,
channel_id
,
channel
Id
:
channel
_id
,
uid_screen
,
callback_url
:
this
.
recordConfig
.
callBackUrl
,
record_mode
,
...
...
@@ -621,7 +616,7 @@ export class AgoraHandle {
const
resp
=
await
hautResp
.
json
()
console
.
log
(
'结束录制返回结果'
,
resp
)
this
.
AnyRemote
.
sendWSFromCall
(
'-2'
,
'NotRecording'
)
if
(
resp
.
success
)
{
if
(
resp
.
code
.
toString
()
===
'200'
)
{
return
resp
.
data
}
return
false
...
...
src/main.ts
View file @
3d4146de
...
...
@@ -58,8 +58,8 @@ app.use(AnyRemotePlugin, {
recordConfig
:
{
callBackUrl
:
'https://hna-platform.anyremote.cn/call/saveScreenRecordNoToken'
,
fileDomain
:
'https://video.anyremote.cn:444'
,
recordStartUrl
:
'http
s://ifar.test.com:3001/recorder/v1
/start'
,
recordStopUrl
:
'http
s://ifar.test.com:3001/recorder/v1
/stop'
recordStartUrl
:
'http
://ifar.test.com:3001/recordings
/start'
,
recordStopUrl
:
'http
://ifar.test.com:3001/recordings
/stop'
},
notice
:
{
info
:
Message
.
info
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment