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 dabd543e
authored
Sep 22, 2023
by
Tianqing Liu
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat: 暴露相关方法到外部
1 parent
0b11a55d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
10 deletions
h5/src/views/pc/index.vue
h5/src/views/pc/index.vue
View file @
dabd543
...
@@ -125,7 +125,7 @@ export default {
...
@@ -125,7 +125,7 @@ export default {
stop
:
-
1
stop
:
-
1
},
},
nowPanTilt
:
''
,
nowPanTilt
:
''
,
isShowTime
:
true
,
// 是否显示时间操作区,默认为true
isShowTime
:
true
,
// 是否显示时间操作区,默认为true
height
:
''
,
// 设置组件高度
height
:
''
,
// 设置组件高度
isShowJT
:
false
,
// 是否显示截图按钮,默认为false
isShowJT
:
false
,
// 是否显示截图按钮,默认为false
...
@@ -142,6 +142,9 @@ export default {
...
@@ -142,6 +142,9 @@ export default {
},
},
mounted
()
{
mounted
()
{
window
.
playWebVideo
=
this
.
playWebVideo
;
window
.
playWebVideo
=
this
.
playWebVideo
;
window
.
initWebVideo
=
this
.
initWebVideo
;
window
.
screenshot
=
this
.
screenshot
;
window
.
stopPlay
=
this
.
stopPlay
;
},
},
methods
:
{
methods
:
{
initWebVideo
(
obj
)
{
initWebVideo
(
obj
)
{
...
@@ -237,12 +240,12 @@ export default {
...
@@ -237,12 +240,12 @@ export default {
},
},
allVideoExitFullScreen
(){
allVideoExitFullScreen
(){
// 暴露退出全屏方法
// 暴露退出全屏方法
// this.isFullScreen = false
// this.isFullScreen = false
},
},
allVideoFullScreen
(
val
){
allVideoFullScreen
(
val
){
// 暴露全屏方法
// 暴露全屏方法
// this.isFullScreen = true
// this.isFullScreen = true
},
},
// 四分屏,单屏切换
// 四分屏,单屏切换
...
@@ -351,13 +354,13 @@ export default {
...
@@ -351,13 +354,13 @@ export default {
this
.
videoBackEndTime
=
moment
().
format
(
'YYYY-MM-DD HH:mm:ss'
)
this
.
videoBackEndTime
=
moment
().
format
(
'YYYY-MM-DD HH:mm:ss'
)
},
},
// 暴露方法
// 暴露方法
/**
/**
* 截图
* 截图
* num为分屏时的窗口序号,从0开始;不传则认为是单屏
* num为分屏时的窗口序号,从0开始;不传则认为是单屏
*/
*/
screenshot
(
num
)
{
screenshot
(
num
)
{
if
(
num
===
0
)
{
if
(
num
===
0
)
{
this
.
$refs
.
vionPlayer0
.
screenshot
().
then
(
data
=>
{
this
.
$refs
.
vionPlayer0
.
screenshot
().
then
(
data
=>
{
...
@@ -385,12 +388,12 @@ export default {
...
@@ -385,12 +388,12 @@ export default {
}).
catch
(
err
=>
{
}).
catch
(
err
=>
{
})
})
}
}
},
},
/**
/**
* 关闭视频播放
* 关闭视频播放
* num为分屏时的窗口序号,从0开始;不传则认为是单屏
* num为分屏时的窗口序号,从0开始;不传则认为是单屏
*/
*/
stopPlay
(
val
)
{
stopPlay
(
val
)
{
if
(
val
>=
0
)
{
if
(
val
>=
0
)
{
if
(
val
===
0
)
{
if
(
val
===
0
)
{
...
@@ -452,7 +455,7 @@ export default {
...
@@ -452,7 +455,7 @@ export default {
border-radius
:
5px
;
border-radius
:
5px
;
}
}
}
}
.elRow
{
.elRow
{
width
:
calc
(
100%
-
60px
);
width
:
calc
(
100%
-
60px
);
position
:
absolute
;
position
:
absolute
;
...
@@ -497,4 +500,4 @@ export default {
...
@@ -497,4 +500,4 @@ export default {
}
}
}
}
}
}
</
style
>
\ No newline at end of file
\ No newline at end of file
</
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