|
@@ -1076,7 +1076,7 @@ export default {
|
|
video.onloadedmetadata = async () => {
|
|
video.onloadedmetadata = async () => {
|
|
try {
|
|
try {
|
|
// 计算截取时长
|
|
// 计算截取时长
|
|
- const duration = Math.min(1, video.duration);
|
|
|
|
|
|
+ const duration = Math.min(2, video.duration);
|
|
|
|
|
|
// 直接从视频元素捕获流
|
|
// 直接从视频元素捕获流
|
|
const stream = video.captureStream();
|
|
const stream = video.captureStream();
|