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 e3652966
authored
Sep 20, 2023
by
Tianqing Liu
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat: 抓拍功能
1 parent
e4166061
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
h5/src/components/vionPlayer/index.vue
h5/src/views/player/vionPlayerDemo.vue
h5/src/components/vionPlayer/index.vue
View file @
e365296
...
@@ -129,6 +129,10 @@ export default {
...
@@ -129,6 +129,10 @@ export default {
});
});
}
}
},
},
screenshot
(
filename
=
''
,
format
=
'png'
,
quality
=
0.92
,
type
=
'base64'
)
{
return
this
.
_jessibuca
.
screenshot
(
filename
,
format
,
quality
,
type
);
},
},
},
}
}
</
script
>
</
script
>
...
...
h5/src/views/player/vionPlayerDemo.vue
View file @
e365296
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
<button
@
click=
"handlePause"
>
暂停
</button>
<button
@
click=
"handlePause"
>
暂停
</button>
<button
@
click=
"handleStop"
>
停止
</button>
<button
@
click=
"handleStop"
>
停止
</button>
<button
@
click=
"handleDestroy"
>
销毁
</button>
<button
@
click=
"handleDestroy"
>
销毁
</button>
<
!--
<button
@
click=
"handleScreenshot"
>
抓拍
</button>
--
>
<
button
@
click=
"handleScreenshot"
>
抓拍
</button
>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -57,9 +57,8 @@ export default {
...
@@ -57,9 +57,8 @@ export default {
];
];
},
},
handleScreenshot
()
{
handleScreenshot
()
{
this
.
$refs
.
vionPlayer
.
screenshotWatermark
().
then
(
data
=>
{
const
result
=
this
.
$refs
.
vionPlayer
.
screenshot
();
console
.
log
(
'handleScreenshot'
,
data
);
console
.
log
(
'handleScreenshot'
,
result
);
});
},
},
handlePause
()
{
handlePause
()
{
this
.
$refs
.
vionPlayer
.
pause
();
this
.
$refs
.
vionPlayer
.
pause
();
...
...
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