Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
蒋秀川
/
miniProject
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 1123573d
authored
Oct 08, 2023
by
Tianqing Liu
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'qxh-master' of
http://git.keliuyun.com:55676/jiaxiuc123/miniProject
into qxh-master
2 parents
26e2d111
c001e402
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
41 additions
and
5 deletions
h5/src/api/index.js
h5/src/views/extension/index.vue
h5/src/views/extension/videoTime.vue
h5/src/views/pc/index.vue
h5/src/api/index.js
View file @
1123573
...
...
@@ -10,10 +10,10 @@ const tourApi = {
},
// 云控制
ptzStart
(
params
,
config
)
{
return
req
(
'P
U
T'
,
`/patrol/through/ptzStart`
,
params
,
config
)
return
req
(
'P
OS
T'
,
`/patrol/through/ptzStart`
,
params
,
config
)
},
ptzStop
(
params
,
config
)
{
return
req
(
'P
U
T'
,
`/patrol/through/ptzStop`
,
params
,
config
)
return
req
(
'P
OS
T'
,
`/patrol/through/ptzStop`
,
params
,
config
)
},
// 获取设备录像记录
getThroughVideoRecord
(
params
,
config
){
...
...
h5/src/views/extension/index.vue
View file @
1123573
...
...
@@ -129,7 +129,20 @@ export default {
});
// this.params = obj
console
.
log
(
this
.
params
)
//利用iframe的onload事件刷新页面
document
.
title
=
this
.
params
.
gateName
||
'视频详情'
var
iframe
=
document
.
createElement
(
'iframe'
);
iframe
.
style
.
visibility
=
'hidden'
;
iframe
.
style
.
width
=
'1px'
;
iframe
.
style
.
height
=
'1px'
;
iframe
.
onload
=
function
()
{
setTimeout
(
function
()
{
document
.
body
.
removeChild
(
iframe
);
},
0
);
};
document
.
body
.
appendChild
(
iframe
);
this
.
params
.
ptzEnable
=
''
+
this
.
params
.
ptzEnable
this
.
terminalType
=
this
.
params
.
terminalType
this
.
dateFormatType
=
this
.
terminalType
==
'ios'
||
this
.
terminalType
==
'mac'
?
'YYYY/MM/DD'
:
'YYYY-MM-DD'
;
if
(
this
.
params
.
gateUnid
)
{
...
...
@@ -152,6 +165,22 @@ export default {
getVideoAddress
(
startTime
,
stopTime
)
{
let
par
=
{
gateUnid
:
this
.
params
.
gateUnid
,
// appKey: this.params.appKey,
// playbackSpeed: 1,
startTime
:
startTime
?
startTime
:
null
,
stopTime
:
stopTime
?
stopTime
:
null
,
}
// 加密
// let parStr = this.aesEncrypt(par)
tourApi
.
getLiveAndPlaybackAddress
(
par
).
then
(
res
=>
{
if
(
res
.
data
&&
res
.
data
.
code
==
200
)
{
this
.
$refs
.
vionPlayer
.
play
(
res
.
data
.
msg
);
}
else
{
Toast
.
fail
(
'取流失败'
);
}
})
/* let par = {
gateUnid: this.params.gateUnid,
appKey: this.params.appKey,
playbackSpeed: 1,
startTime:startTime?startTime:null,
...
...
@@ -162,8 +191,10 @@ export default {
tourApi.getThroughVideoUrl({param:parStr}).then(res => {
if (res.data&&res.data.code == 200) {
this.$refs.vionPlayer.play(res.data.msg);
} else {
Toast.fail('取流失败');
}
})
})
*/
},
//加密
aesEncrypt
(
obj
){
...
...
h5/src/views/extension/videoTime.vue
View file @
1123573
...
...
@@ -31,7 +31,7 @@
</div>
<!-- 操作按钮 -->
<div
class=
"operating-box"
>
<van-button
v-if=
"isNoBack&&ptzEnable==
1
"
type=
"info"
size=
"mini"
@
click=
"ptzControlChange"
>
{{
ptzControlShow
?
'隐藏云台'
:
'打开云台'
}}
</van-button>
<van-button
v-if=
"isNoBack&&ptzEnable==
='1'
"
type=
"info"
size=
"mini"
@
click=
"ptzControlChange"
>
{{
ptzControlShow
?
'隐藏云台'
:
'打开云台'
}}
</van-button>
<van-button
v-else-if=
"!isNoBack"
type=
"info"
size=
"mini"
@
click=
"backRealTime"
>
返回实时
</van-button>
<!--
<div
v-if=
"isNoBack"
class=
"operating-btn"
@
click=
"ptzControlChange"
>
{{
ptzControlShow
?
'隐藏云台'
:
'打开云台'
}}
</div>
-->
<!--
<div
v-else
class=
"operating-btn"
@
click=
"backRealTime"
>
返回实时
</div>
-->
...
...
h5/src/views/pc/index.vue
View file @
1123573
...
...
@@ -225,7 +225,12 @@ export default {
this
.
$refs
.
vionPlayer
.
play
(
res
.
data
.
msg
);
}
// this.splitNumChange()
}
}
else
{
this
.
$message
({
message
:
res
.
data
.
msg
||
'取流失败'
,
type
:
'warning'
});
}
})
},
// 分屏时选中屏数自动改变
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment