使HTML5视频播放器播放不同的文件(Make a HTML5 video player play a different file)
在播放视频时,我无法让HTML5播放器播放不同的视频,我尝试更改source.src但是它不会将实际视频更改为播放不同的文件。 如何让视频真正转到下一个视频?
这是代码中不起作用的部分:
使用Javascript:
function change(s){
srs=document.getElementById('source');
srs.src="";
srs.src=s;
video.pause();
video.currentTime=0;
video.play();
}
HTML:
PS:这实际上不需要在线工作,我只想为自己制作一个视频/音频播放器
While a video is playing I can't get the HTML5 player to play a different video, I tried changing the source.src but then it doesn't change the actual video to playing a different file. How do I get the video to actually go to the next video?
This is the part of the code that's not working:
Javascript:
function change(s){
srs=docum