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 b5ba3271
authored
Jun 17, 2024
by
李乾广
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改bug
1 parent
0ae8d46b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
10 deletions
h5/src/components/vionPlayer/index.vue
h5/src/views/extension/index.vue
h5/src/components/vionPlayer/index.vue
View file @
b5ba327
...
...
@@ -150,12 +150,15 @@ export default {
// 断线重连
playerIns
.
on
(
JessibucaPro
.
EVENTS
.
playFailedAndPaused
,
(
e
)
=>
{
console
.
log
(
'playFailedAndPaused'
,
e
);
let
isLoad
=
window
.
localStorage
.
getItem
(
'isLoad'
)
if
(
isLoad
&&
isLoad
>
0
)
{
window
.
localStorage
.
setItem
(
'isLoad'
,
0
)
}
else
{
window
.
localStorage
.
setItem
(
'isLoad'
,
1
)
window
.
location
.
reload
();
let
isOnlyBack
=
window
.
localStorage
.
getItem
(
'isOnlyBack'
)
if
(
isOnlyBack
&&
isOnlyBack
>
0
)
{
let
isLoad
=
window
.
localStorage
.
getItem
(
'isLoad'
)
if
(
isLoad
&&
isLoad
>
0
)
{
window
.
localStorage
.
setItem
(
'isLoad'
,
0
)
}
else
{
window
.
localStorage
.
setItem
(
'isLoad'
,
1
)
window
.
location
.
reload
();
}
}
// this.replay();
});
...
...
@@ -192,7 +195,7 @@ export default {
this
.
_jessibuca
.
playback
(
url
,
getPlaybackConfig
());
this
.
playerType
=
'playback'
;
}
else
{
this
.
_jessibuca
.
play
(
url
+
'123'
);
this
.
_jessibuca
.
play
(
url
);
this
.
playerType
=
'live'
;
}
this
.
playOriginUrl
=
url
;
...
...
h5/src/views/extension/index.vue
View file @
b5ba327
<
template
>
<div
class=
"extension-page"
>
<div
class=
"j-player-wrapper"
>
<div
class=
"description-text"
v-if=
"params.description"
>
{{
params
.
description
}}
</div>
<vion-player
ref=
"vionPlayer"
:watermarkText=
"params.watermarkText"
:watermarkOpacity=
"params.watermarkOpacity"
:hideControls=
"false"
:showPtz=
"false"
:isXCXPage=
"true"
@
magnificationChange=
"magnificationChange"
/>
</div>
<!-- 时间线组件 -->
...
...
@@ -49,6 +50,7 @@ export default {
userKey
:
''
,
restaurantId
:
''
,
playbackTime
:
''
,
description
:
''
,
},
panTiltList
:{
up
:
0
,
...
...
@@ -152,6 +154,7 @@ export default {
this
.
dateFormatType
=
this
.
terminalType
==
'ios'
||
this
.
terminalType
==
'mac'
?
'YYYY/MM/DD'
:
'YYYY-MM-DD'
;
if
(
this
.
params
.
gateUnid
)
{
if
(
this
.
params
.
playbackTime
)
{
window
.
localStorage
.
setItem
(
'isOnlyBack'
,
1
)
let
playbackTime
=
moment
(
this
.
params
.
playbackTime
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
let
nowTime
=
moment
(
this
.
params
.
playbackTime
).
format
(
'YYYY-MM-DD 23:59:59'
)
this
.
getVideoAddress
(
playbackTime
,
nowTime
)
...
...
@@ -159,6 +162,7 @@ export default {
this
.
$refs
.
videoTimeRef
.
initBackTime
(
playbackTime
);
})
}
else
{
window
.
localStorage
.
setItem
(
'isOnlyBack'
,
0
)
this
.
getVideoAddress
()
}
}
...
...
@@ -261,9 +265,9 @@ export default {
},
5000
);
// 跳转页面
// 测试环境
const
strUrl
=
`http://dining-sit.huian365.com/camera/CameraReport?userKey=
${
this
.
params
.
userKey
}
&restaurantId=
${
this
.
params
.
restaurantId
}
&imgUrl=
${
encodeURIComponent
(
res
.
data
.
data
)}
`
//
const strUrl = `http://dining-sit.huian365.com/camera/CameraReport?userKey=${this.params.userKey}&restaurantId=${this.params.restaurantId}&imgUrl=${encodeURIComponent(res.data.data)}`
// 生产环境
//
const strUrl = `https://dining.huian365.com/camera/CameraReport?userKey=${this.params.userKey}&restaurantId=${this.params.restaurantId}&imgUrl=${encodeURIComponent(res.data.data)}`
const
strUrl
=
`https://dining.huian365.com/camera/CameraReport?userKey=
${
this
.
params
.
userKey
}
&restaurantId=
${
this
.
params
.
restaurantId
}
&imgUrl=
${
encodeURIComponent
(
res
.
data
.
data
)}
`
window
.
location
.
href
=
strUrl
}
else
{
this
.
$message
({
...
...
@@ -303,5 +307,18 @@ export default {
height
:
16px
;
z-index
:
1000
;
}
.description-text
{
position
:
absolute
;
z-index
:
100
;
top
:
15px
;
right
:
0px
;
background
:
rgba
(
255
,
0
,
0
,
0.4
);
color
:
#fff
;
padding
:
0px
10px
;
height
:
30px
;
line-height
:
30px
;
font-size
:
13px
;
//
border-top-left-radius
:
5px
;
//
border-bottom-left-radius
:
5px
;
}
</
style
>
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