用于YouTube视频播放的Chrome扩展程序

时间:2015-11-23 08:10:44

标签: google-chrome google-chrome-extension html5-video

我为YouTube撰写了一个扩展程序,其中包括在打开页面时暂停YouTube的视频播放。问题是视频暂停但视频工具栏没有更新,所以它显示暂停按钮而不是播放按钮。

这是我的代码:

html5Videos = document.querySelectorAll("video");
    for (var v = 0; v < html5Videos.length; v++)
        html5Videos[v].pause();

我找不到更新视频工具栏的方法。

This is how it looks, I need to hit play but the pause button is shown.

感谢。

0 个答案:

没有答案
相关问题