Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
H
huaxin-rq
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
耿迪迪
huaxin-rq
Commits
c15fa3f3
Commit
c15fa3f3
authored
Jun 04, 2026
by
耿迪迪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
鸿海视频
parent
a8442a80
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
5 deletions
+18
-5
artemis.js
huaxin-web/src/api/video/artemis.js
+17
-4
PlayVideo.vue
huaxin-web/src/components/Video/PlayVideo.vue
+1
-1
No files found.
huaxin-web/src/api/video/artemis.js
View file @
c15fa3f3
import
request
from
'@/utils/request'
/**
* api根地址
* @type {{"1": "华鑫", "2": "鸿海"}}
*/
const
apiBaseConfig
=
{
'1'
:
"/artemis"
,
'2'
:
"/honghai/artemis"
};
// 查询视频地址
export
function
getPreviewURLs
(
query
)
{
export
function
getPreviewURLs
(
query
,
type
=
'1'
)
{
return
request
({
url
:
'/artemis
/getPreviewURLs'
,
url
:
apiBaseConfig
[
type
]
+
'
/getPreviewURLs'
,
method
:
'get'
,
params
:
query
})
}
// 云台控制
export
function
videoControlling
(
query
)
{
export
function
videoControlling
(
query
,
type
=
'1'
)
{
return
request
({
url
:
'/artemis
/videoControlling'
,
url
:
apiBaseConfig
[
type
]
+
'
/videoControlling'
,
method
:
'get'
,
params
:
query
})
}
huaxin-web/src/components/Video/PlayVideo.vue
View file @
c15fa3f3
...
...
@@ -126,7 +126,7 @@ export default {
playVideo
(
data
)
{
this
.
videoName
=
data
.
videoName
;
this
.
cameraIndexCode
=
data
.
videoResource
;
getPreviewURLs
({
cameraIndexCode
:
data
.
videoResource
}).
then
((
response
)
=>
{
getPreviewURLs
({
cameraIndexCode
:
data
.
videoResource
}
,
data
.
videoType
).
then
((
response
)
=>
{
if
(
response
.
data
.
code
==
"0"
)
{
this
.
videoOpenNum
++
;
let
url
=
response
.
data
.
data
.
url
;
...
...
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