有没有什么办法让这段代码工作? = video_tag("#{video.mp4}", "#{video.ogv}", 'Your browser does not support the video tag.'
现在只增加了新的视频源与文本消息,而不是返回它这样的: <video>
<source src="movie.mp4" type="video/mp4">
<so
Microsoft Edge支持HLS,但有些浏览器不支持(例如Chrome)。我读来测试你有测试video.src这样HLS的可用性: videoPromise = video.play()
if(videoPromise !== undefined){
// There's support
} else {
// There's no support
}
此代码
我试图根据代码中的一些规则动态地隐藏/显示A帧的vr-mode-ui。 Initally的<a-scene>看起来是这样的: <a-scene id="vr-scene" vr-mode-ui="enabled: false">
在我的控制,我想启用和基于标记禁用它: let scene = document.querySelector('#vr-scene');
if (showVR) {
我绝不是Web开发人员,所以如果我错失了一些明显的东西,请原谅我。我检查了这个question,我发现使用.mp4文件可以正常工作,但WebVTT文件(.vtt)不可用。 I think the player recognized the subtile as the player bar show "CC" button but in the video, subtitle was not di