What browsers currently implement support for the HTML5 MediaController? [closed]

痞子三分冷 提交于 2019-12-10 17:24:31

问题


So my Google fu has failed me. Is there a know list of browsers (including beta versions) that support the HTML5 MediaController object?


回答1:


No browsers support MediaController.

Safari claims support, but it doesn't work well enough to actually use.

Chrome have removed default support and put it behind an experimental flag. Turns out, it was never properly implemented in Chrome in the first place: it didn't maintain synchronisation, it was simply play/pause/seek both media at the same time and hope for the best. (see https://groups.google.com/a/chromium.org/forum/#!msg/blink-dev/MVcoNSPs1UQ/LIF-fvu2lwoJ)




回答2:


I know that Safari can control the video object. But I'm not sure if it can use HTML5 MediaController.

See some example in : Safari HTML5 Audio and Video Controller




回答3:


You can test support for MediaController using this simple but not perfect code:

function checkSupport() {
    if (!("MediaController" in window)) {
        return "unsupported";
    }
    var mc = new MediaController();
    if ("onended" in mc) {
        return "supported";
    } else {
        return "partially supported";
    }
}

Or open this fiddle: http://jsfiddle.net/achwedyk/Hk393/

I've tested various browsers and currently (April 2014) only Chrome 34 and Safari 7 partially support MediaController. However there is open bug for missing event handlers: https://bugs.webkit.org/show_bug.cgi?id=94891



来源:https://stackoverflow.com/questions/8756580/what-browsers-currently-implement-support-for-the-html5-mediacontroller

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!