We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
配置
const video = wvc.createSingleVideo({ // 需要渲染的页面地址 url: params?.url || "https://fs.autohome.com.cn/afu_spa/H5ToVideo?highColor=FF0000&defaultColor=fff&fontSize=30", // 或者可以直接设置页面内容 // content: "
The text was updated successfully, but these errors were encountered:
No branches or pull requests
配置
const video = wvc.createSingleVideo({
// 需要渲染的页面地址
url: params?.url || "https://fs.autohome.com.cn/afu_spa/H5ToVideo?highColor=FF0000&defaultColor=fff&fontSize=30",
// 或者可以直接设置页面内容
// content: "
Hello WebVideoCreator
",// 视频宽度
width: params?.width || 1280,
// 视频高度
height: params?.height || 720,
// 视频帧率
fps: 14,
// 视频时长
duration: params?.duration || 1000 * 60,
startTime: 10,
// 视频输出路径
outputPath: "./video.webm",
showProgress: true,
backgroundOpacity: 0,
pixelFormat: "rgb24",
videoBitrate: "8192k",
autostartRender: false
});
The text was updated successfully, but these errors were encountered: