Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在<video>为 Android 应用程序的 WebView 中嵌入一个标签,以便在第一代 Kindle Fire 上使用。当我播放视频时,视频不会播放video.play(),但我的错误回调也不会被调用。我尝试将其设置为onerror视频本身的属性,然后将事件添加到元素中。根据规范,它应该可以工作,但似乎没有。有任何想法吗?
<video>
video.play()
onerror
video.addEventListener('error', function(err) { 警报(“错误”); });