Android> Chrome Chromecast图标覆盖html5视频位置 [英] Android > Chrome Chromecast icon over html5 video position

查看:128
本文介绍了Android> Chrome Chromecast图标覆盖html5视频位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果有Chromecast并且:

If there is a Chromecast around and:

我想禁用本机控件,但也包含我自己的控件转换按钮, video.js-chromecast 的功能,但原生按钮仍显示

I'd like to disable the native controls, but also include my own cast button, kind of what video.js-chromecast does, but the native button still shows up.

无论如何都要在html5视频上重新定位Cast图标?或完全隐藏它?

Is there anyway to reposition the Cast icon over the html5 video? or completely hide it ?

推荐答案

在搜索Chromium源代码后,我想出了如何做到这一点:

After searching the Chromium source code, I figured out how to do it:

video::-internal-media-controls-overlay-cast-button {
    display: none;
}

示例:http://jsfiddle.net/f1quhd2L/8/

这篇关于Android> Chrome Chromecast图标覆盖html5视频位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆