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 c001e402
authored
Sep 28, 2023
by
李乾广
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
xiug bug
1 parent
06a2ad95
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
1 deletions
h5/src/views/extension/index.vue
h5/src/views/extension/index.vue
View file @
c001e40
...
...
@@ -129,7 +129,19 @@ 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'
;
...
...
@@ -153,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,
...
...
@@ -166,7 +194,7 @@ export default {
} else {
Toast.fail('取流失败');
}
})
})
*/
},
//加密
aesEncrypt
(
obj
){
...
...
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