Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wisdom-components
Project
Project
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
ReactWeb5
wisdom-components
Commits
a4a846fa
Commit
a4a846fa
authored
Apr 26, 2024
by
李纪文
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 视频控制增加手持
parent
5ec2a2ec
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
index.js
packages/base-components/VmsVideo/src/apis/index.js
+1
-1
CloudPlate.js
...ges/base-components/VmsVideo/src/components/CloudPlate.js
+3
-1
No files found.
packages/base-components/VmsVideo/src/apis/index.js
View file @
a4a846fa
...
...
@@ -3,7 +3,7 @@ import { request } from '@wisdom-utils/utils';
const
REQUEST_METHOD_GET
=
'get'
;
const
REQUEST_METHOD_POST
=
'post'
;
// eslint-disable-next-line no-undef
const
navigatorAgent
=
/
(
iPhone|iOS|Android|Windows Phone
)
/i
.
test
(
navigator
.
userAgent
);
const
navigatorAgent
=
/
(
iPhone|iOS|Android|Windows Phone
)
/i
.
test
(
navigator
?
.
userAgent
);
const
baseURI
=
typeof
DUMI_TYPE
!==
'undefined'
&&
DUMI_TYPE
===
'dumi'
?
'/api'
:
''
;
const
CommonPath
=
navigatorAgent
?
'/PandaCore/GateWay'
:
''
;
...
...
packages/base-components/VmsVideo/src/components/CloudPlate.js
View file @
a4a846fa
...
...
@@ -27,10 +27,12 @@ const CloudPlate = (props) => {
// 触发控制接口
const
handleControl
=
async
(
num
)
=>
{
var
formData
=
new
FormData
();
const
navigatorAgent
=
/
(
iPhone|iOS|Android|Windows Phone
)
/i
.
test
(
navigator
?.
userAgent
);
const
userInfo
=
localStorage
.
getItem
(
"userInfo"
)
?
JSON
.
parse
(
localStorage
.
getItem
(
"userInfo"
))
:
{};
const
data
=
{
id
:
videoInfo
.
id
,
direction
:
num
,
'site-code'
:
window
?.
globalConfig
?.
userInfo
?.
LocalSite
||
''
,
'site-code'
:
!
navigatorAgent
?
window
?.
globalConfig
?.
userInfo
?.
LocalSite
||
''
:
userInfo
?.
LocalSite
||
''
,
};
for
(
const
key
in
data
)
{
formData
.
append
(
key
,
data
[
key
]);
...
...
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