0
有谁知道这是可能的吗?将两个不同视频的两个剪辑合并到一个带有javascript(客户端)的视频中?
我发现最接近的事我所寻找的是这样的:http://bgrins.github.io/videoconverter.js/
但“文档”是很小的。
有谁知道这是可能的吗?将两个不同视频的两个剪辑合并到一个带有javascript(客户端)的视频中?
我发现最接近的事我所寻找的是这样的:http://bgrins.github.io/videoconverter.js/
但“文档”是很小的。
您可以在一个视频元素
var myvid = document.getElementById('myvideo');
var myvids = [
"http://www.w3schools.com/html/mov_bbb.mp4",
"http://www.w3schools.com/html/movie.mp4"
];
var activeVideo = 0;
myvid.addEventListener('ended', function(e) {
// update the new active video index
activeVideo = (++activeVideo) % myvids.length;
// update the video source and play
myvid.src = myvids[activeVideo];
myvid.play();
});
<video src="http://www.w3schools.com/html/mov_bbb.mp4" id="myvideo" width="320" height="240" controls style="background:black">
</video>
你所说的 “结合” 是指加2个视频吗? – guest271314