video组件全屏时怎么监听点击屏幕后按钮显示隐藏事件?

小程序 文章 2020-08-27 20:21 1177 0 全屏看文

AI助手支持GPT4.0

video组件全屏时怎么监听点击屏幕后按钮显示隐藏事件?When the video component is full screen, how to monitor the button display and hide event after clicking the screen?

video组件全屏时怎么监听点击屏幕后按钮显示隐藏事件?

我在video组件上加了几个按钮 默认情况下点一下屏幕显示video组件自带的进度条、全屏等那些按钮 再点一下屏幕这些控件隐藏 可以监听到这个事件吗?文档里面找不到这个方法 哪位大神可以解答一下?

I have added several buttons to the video component. By default, clicking on the screen shows the progress bar and full screen of the video component, and then clicking the screen again. These controls are hidden. Can I listen to this event? This method can't be found in the document, which God can answer it?

回答:

程鑫磊:?
A德佑-黄勇¹³³³³⁰⁶⁵³⁸¹:

给需要隐藏的部分加个隐藏功能不行吗

kiki~:我想让自定义的按钮如 清晰度,选集这种 点屏幕在进度条显示的时候一起显示自定义控件 ,这些这些自带控件隐藏的时候一起隐藏自定义的控件
A德佑-黄勇¹³³³³⁰⁶⁵³⁸¹:说实话,不知道是我写代码脑子瓦特了,还是你的语言逻辑不太对,我怎么理解不了你的意思。最好你可以上demo
仙ღ₅₂₀¹³¹⁴:

试下bindcontrolstoggle

kiki~:三克油
仙ღ₅₂₀¹³¹⁴:控制台的好像是有
kiki~:控制台的? 不太懂 可以具体说一下吗?
仙ღ₅₂₀¹³¹⁴:bindcontrolstoggle
kiki~:我试一下 谢谢啦🙏
仙ღ₅₂₀¹³¹⁴:好滴。

-EOF-

AI助手支持GPT4.0