Android > Chrome Chromecast icon over html5 video position

前端 未结 2 1237
名媛妹妹
名媛妹妹 2021-02-13 04:20

If there is a Chromecast around and:

If the html5 video controls are enabled, the cast buttons shows up in the control bar.

If the html5 video controls are di

相关标签:
2条回答
  • 2021-02-13 05:16

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

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

    Example: http://jsfiddle.net/f1quhd2L/8/

    0 讨论(0)
  • 2021-02-13 05:25

    There is another options to disable casting button, this option actually disables the button instead of hiding it.

    <video disableRemotePlayback src="...">

    https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/disableRemotePlayback https://developers.google.com/web/updates/2015/11/presentation-api

    0 讨论(0)
提交回复
热议问题