Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
honghu
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
xinzhedeai
honghu
Commits
1ca30092
Commit
1ca30092
authored
May 26, 2024
by
xinzhedeai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
监控 ezuikitjs
parent
70c7de43
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
6 deletions
+32
-6
EZUIKitJs.vue
src/components/EZUIKitJs.vue
+32
-6
No files found.
src/components/EZUIKitJs.vue
View file @
1ca30092
...
...
@@ -7,6 +7,7 @@
</div>
-->
<div
class=
"cv-inbody"
>
<div
class=
"EZUIKit-video"
id=
"video-container"
></div>
<div
class=
"EZUIKit-video"
id=
"video-container2"
></div>
</div>
</div>
</
template
>
...
...
@@ -56,6 +57,8 @@ export default {
},
mounted
()
{
this
.
videoContainer
=
this
.
$el
.
querySelector
(
"
#video-container
"
);
this
.
videoContainer2
=
this
.
$el
.
querySelector
(
"
#video-container2
"
);
this
.
info
=
{
id
:
"
AX8345878
"
,
appKey
:
"
a3008abda1b94df7b3002f2034b7272d
"
,
...
...
@@ -95,6 +98,15 @@ export default {
},
500
);
}
else
{
this
.
createVideo
(
item
);
}
if
(
this
.
videoContainer2
.
firstElementChild
)
{
this
.
videoContainer2
.
innerHTML
=
""
;
setTimeout
(()
=>
{
this
.
createVideo2
(
item
);
},
500
);
}
else
{
this
.
createVideo2
(
item
);
}
},
...
...
@@ -126,6 +138,19 @@ export default {
);
},
createVideo2
(
item
)
{
this
.
getAccessToken
(
this
.
info
.
appKey
,
this
.
info
.
appSecret
).
then
(
(
accessToken
)
=>
{
this
.
player2
=
new
EZUIKit
.
EZUIKitPlayer
({
autoplay
:
true
,
id
:
"
video-container2
"
,
accessToken
:
accessToken
,
url
:
'
ezopen://open.ys7.com/BA2171975/1.hd.live
'
,
template
:
"
standard
"
,
// simple - 极简版;standard-标准版;security - 安防版(预览回放);voice-语音版;
});
}
);
},
/**
* 获取Token
* @param: {String} appKey
...
...
@@ -153,7 +178,7 @@ export default {
return
err
;
});
},
getUrl
(
item
)
{
var
captcha
=
item
.
captcha
?
item
.
captcha
+
"
@
"
:
""
;
var
id
=
item
.
id
||
this
.
info
.
id
||
""
;
...
...
@@ -184,8 +209,7 @@ export default {
.cv-inbox
{
position
:
relative
;
height
:
200px
;
// width: 100%;
width
:
360px
;
width
:
670px
;
display
:
flex
;
flex-direction
:
column
;
.vi-select
{
...
...
@@ -217,6 +241,8 @@ export default {
}
.cv-inbody
{
display
:
flex
;
justify-content
:
space-around
;
flex
:
1
;
position
:
relative
;
.EZUIKit-video
{
...
...
@@ -230,9 +256,9 @@ export default {
iframe
{
// height: 100%;
height
:
200px
!
important
;
width
:
1
00%
;
}
width
:
1
}
}
}
}
</
style
>
</
style
>
\ No newline at end of file
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