有个课程录播,是两个视频,一个是 ppt 界面的录屏,一个是课堂里面老师讲课的视频(只看得到黑板和人)
我下下来观看,觉得同时调节两个视频的进度很麻烦,不容易对准
有没有办法同步播放、同步调节进度
1
youla 2020-12-07 16:55:28 +08:00
做过类似的,用的 websocket 通信。
|
2
kiracyan 2020-12-07 17:02:21 +08:00
合并两个视频
|
3
ditel 2020-12-07 17:05:58 +08:00 via Android
事件吧,事件通信什么的
|
4
gggxxxx 2020-12-07 17:08:40 +08:00 1
40
If anyone is still interested in this the current version of VLC is able to do this very well without any kind of scripting or add-on. As far as I know however you can only play two files synchronously, not 3. To accomplish this simply open VLC and select Media>Open Multiple Files. Inside the multiple file windows select add to add the first file. After this click on the, "Show more options," checkbox followed by the, "Play another media synchronously," checkbox at the bottom of the window. Select browse next to, "Extra media," to add the second file. Hit play and the two media files will play simultaneously with a single control window. |
5
easonHHH 2020-12-07 17:21:25 +08:00
最简单粗暴的方法应该是找个视频剪辑软件把两个视频直接合并一起
|
6
yutou527 2020-12-07 17:44:15 +08:00 3
```html
<!DOCTYPE HTML> <html> <body> <video id='main' controls="controls" controls="controls"> <source src="/i/movie.mp4" type="video/mp4" /> </video> <video id='sub' controls="controls" controls="controls"> <source src="/i/movie.mp4" type="video/mp4" /> </video> <script> let main = document.getElementById('main'); let sub = document.getElementById('sub'); main.addEventListener('play',function(e){sub.play()}); main.addEventListener('pause',function(e){sub.pause()}); main.addEventListener('seeking',e=>{ sub.currentTime = main.currentTime; }); </script> </body> </html> ``` |
7
yutou527 2020-12-07 17:44:32 +08:00
这个才简单粗暴
|
8
yutou527 2020-12-07 17:51:52 +08:00
|
9
myxingkong 2020-12-07 18:04:14 +08:00 1
https://imgchr.com/i/DxRCse
推荐 rvplayer,非常强大的视频播放器,支持并播多个视频,并且支持自定义播放布局,可以将一个视频叠加在另一个视频上方,看上去就像一个视频。 官网地址: http://www.tweaksoftware.com/products/rv 不过是收费的,当然你也可以找找 xx 版。 |
12
weiwenhao 2020-12-07 18:14:48 +08:00
配置一个单独的进度条, 进度条拖动后读取百分比,然后再分别配置两个视频的进度百分比不就可以了。
|
14
Lemeng 2020-12-07 21:50:34 +08:00
不专业路过,不过不会出现两个音,或者产生杂音啥的
|