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
b51f8147
Commit
b51f8147
authored
May 15, 2024
by
qlintonger xeno
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
录制完毕初步+1
parent
a7057841
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
8 deletions
+23
-8
anyremote/agora/index.js
+8
-0
anyremote/agoraHandle.js
+4
-4
src/api/alova-instance.ts
+7
-0
src/main.ts
+2
-2
src/views/remote/videoCall/videoTools.vue
+2
-2
No files found.
anyremote/agora/index.js
View file @
b51f8147
...
@@ -207,6 +207,14 @@ export class Agora {
...
@@ -207,6 +207,14 @@ export class Agora {
webrtcStates
.
value
.
isCameraAttached
=
wholeCameraSet
.
length
>
0
webrtcStates
.
value
.
isCameraAttached
=
wholeCameraSet
.
length
>
0
webrtcStates
.
value
.
isMicroAttached
=
info
.
filter
(
a
=>
a
.
kind
===
'audioinput'
).
length
>
0
;
webrtcStates
.
value
.
isMicroAttached
=
info
.
filter
(
a
=>
a
.
kind
===
'audioinput'
).
length
>
0
;
console
.
log
(
'当前设备状况'
,
info
,
chatChannelState
.
value
)
console
.
log
(
'当前设备状况'
,
info
,
chatChannelState
.
value
)
this
.
app
.
sendWSFromCall
(
'0'
,
'SetAtts'
,
{
hasCamera
:
Boolean
(
webrtcStates
.
value
.
isCameraAttached
)
?
'1'
:
'0'
,
hasMike
:
Boolean
(
webrtcStates
.
value
.
isMicroAttached
)
?
'1'
:
'0'
}
)
})
})
AgoraRTC
.
onCameraChanged
=
function
()
{
AgoraRTC
.
onCameraChanged
=
function
()
{
window
.
navigator
.
mediaDevices
.
enumerateDevices
()
window
.
navigator
.
mediaDevices
.
enumerateDevices
()
...
...
anyremote/agoraHandle.js
View file @
b51f8147
...
@@ -569,8 +569,8 @@ export class AgoraHandle {
...
@@ -569,8 +569,8 @@ export class AgoraHandle {
const
uid_screen
=
userStates
.
value
.
currentUserId
const
uid_screen
=
userStates
.
value
.
currentUserId
const
record_mode
=
'1'
const
record_mode
=
'1'
const
reqData
=
{
const
reqData
=
{
channel
Id
:
channel
_id
,
channel_id
,
u
serId
:
u
id_screen
,
uid_screen
,
};
};
this
.
currentRecordingData
=
{
this
.
currentRecordingData
=
{
channel_id
,
uid_screen
,
record_mode
channel_id
,
uid_screen
,
record_mode
...
@@ -597,7 +597,7 @@ export class AgoraHandle {
...
@@ -597,7 +597,7 @@ export class AgoraHandle {
const
{
channel_id
,
uid_screen
,
record_mode
}
=
this
.
currentRecordingData
const
{
channel_id
,
uid_screen
,
record_mode
}
=
this
.
currentRecordingData
const
reqData
=
{
const
reqData
=
{
appid
:
this
.
agoraOptions
.
appId
,
appid
:
this
.
agoraOptions
.
appId
,
channel
Id
:
channel
_id
,
channel_id
,
uid_screen
,
uid_screen
,
callback_url
:
this
.
recordConfig
.
callBackUrl
,
callback_url
:
this
.
recordConfig
.
callBackUrl
,
record_mode
,
record_mode
,
...
@@ -617,7 +617,7 @@ export class AgoraHandle {
...
@@ -617,7 +617,7 @@ export class AgoraHandle {
console
.
log
(
'结束录制返回结果'
,
resp
)
console
.
log
(
'结束录制返回结果'
,
resp
)
this
.
AnyRemote
.
sendWSFromCall
(
'-2'
,
'NotRecording'
)
this
.
AnyRemote
.
sendWSFromCall
(
'-2'
,
'NotRecording'
)
if
(
resp
.
code
.
toString
()
===
'200'
)
{
if
(
resp
.
code
.
toString
()
===
'200'
)
{
return
resp
.
data
return
resp
.
save_
data
}
}
return
false
return
false
}
}
...
...
src/api/alova-instance.ts
View file @
b51f8147
...
@@ -83,6 +83,13 @@ export const alova = createAlova({
...
@@ -83,6 +83,13 @@ export const alova = createAlova({
userStore
.
handleLogOut
()
userStore
.
handleLogOut
()
return
Promise
.
reject
(
new
Error
(
json
.
message
))
return
Promise
.
reject
(
new
Error
(
json
.
message
))
}
else
{
}
else
{
console
.
log
(
'upload here'
,
method
,
json
);
if
(
method
.
url
===
'/admin/uploadMuFile'
)
{
json
.
data
.
url
=
json
.
data
.
url
.
replace
(
json
.
data
.
url
.
substring
(
0
,
json
.
data
.
url
.
indexOf
(
'/upload'
)),
method
.
baseURL
)
}
return
json
return
json
}
}
},
},
...
...
src/main.ts
View file @
b51f8147
...
@@ -58,8 +58,8 @@ app.use(AnyRemotePlugin, {
...
@@ -58,8 +58,8 @@ app.use(AnyRemotePlugin, {
recordConfig
:
{
recordConfig
:
{
callBackUrl
:
'https://hna-platform.anyremote.cn/call/saveScreenRecordNoToken'
,
callBackUrl
:
'https://hna-platform.anyremote.cn/call/saveScreenRecordNoToken'
,
fileDomain
:
'https://video.anyremote.cn:444'
,
fileDomain
:
'https://video.anyremote.cn:444'
,
recordStartUrl
:
'https://ifar.test.com:440/record/start'
,
recordStartUrl
:
'https://ifar.test.com:440/record
er/v1
/start'
,
recordStopUrl
:
'https://ifar.test.com:440/record/stop'
recordStopUrl
:
'https://ifar.test.com:440/record
er/v1
/stop'
},
},
notice
:
{
notice
:
{
info
:
Message
.
info
,
info
:
Message
.
info
,
...
...
src/views/remote/videoCall/videoTools.vue
View file @
b51f8147
...
@@ -115,7 +115,7 @@ async function toggleRecording() {
...
@@ -115,7 +115,7 @@ async function toggleRecording() {
console
.
log
(
'录制结果提示?'
,
resp
)
console
.
log
(
'录制结果提示?'
,
resp
)
if
(
resp
)
{
if
(
resp
)
{
AnyR
?.
agora
.
sendVideo
({
AnyR
?.
agora
.
sendVideo
({
fileUrl
:
resp
.
url
,
fileUrl
:
resp
.
video_
url
,
fileName
:
resp
.
fileName
,
fileName
:
resp
.
fileName
,
fileSize
:
resp
.
fileSize
fileSize
:
resp
.
fileSize
})
})
...
@@ -174,7 +174,7 @@ function paintSaved(blob: any) {
...
@@ -174,7 +174,7 @@ function paintSaved(blob: any) {
AnyR
?.
agora
.
archiveMark
({
AnyR
?.
agora
.
archiveMark
({
fileUrl
:
res
.
data
.
url
,
fileUrl
:
res
.
data
.
url
,
fileName
:
res
.
data
.
name
,
fileName
:
res
.
data
.
name
,
fileSize
:
Number
.
parseInt
(
res
.
data
.
size
),
fileSize
:
Number
.
parseInt
(
res
.
data
.
raw_
size
),
fileType
:
'image'
fileType
:
'image'
})
})
}
}
...
...
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