This question already has an answer here:
这个问题已经有了答案:
- Hide iPhone HTML5 video play button 11 answers
- 隐藏iPhone HTML5视频播放按钮11答案
The controls are always visible, no matter the state of the "controls" flag (whether it's there or not) and the video tag itself emits the touch events with the controls on
控件总是可见的,无论“控件”标志的状态(无论它是否存在),视频标记本身都会发出带有控件的触摸事件
1 个解决方案
#1
2
Omitting the "controls" flag should render the video tag control-less, however a temporary bug or not, the flag is completely ignored at iphone/ipod devices, the controls are also meaningless, as the video always plays in full-screen, you are left with a huge chunk of space, whose only purpose is to suck all the click and touch events like a black hole
省略“控制”国旗应该呈现视频标签变差,但是一个临时错误与否,标志是完全忽略的iphone / ipod设备,控制也毫无意义,视频总是在全屏,你留下大量的空间,唯一的目的是为了吸收所有的点击和触摸事件像一个黑洞
The behavior is documented here: https://developer.apple.com/library/safari/documentation/AudioVideo/Conceptual/Using_HTML5_Audio_Video/Device-SpecificConsiderations/Device-SpecificConsiderations.html
行为在这里被记录下来:https://developer.apple.com/library/safari/documentation/audiovideo/conceptual/using_html5_audio_video/device - specifications.html
The solution is to set the video tag's width/height to 1/1 - position it with "fixed" to -10,-10 and manually trigger "play" with a replacement UI instead of an actual video
解决方案是将视频标记的宽度/高度设置为1/1——将其“固定”为-10,-10,并使用替换UI而不是实际的视频手动触发“播放”
This way the absurdities of the video tag are gone and since it always plays in fullscreen, the functionality is the same
这样,视频标签的荒谬就消失了,因为它总是在全屏播放,所以功能是一样的
#1
2
Omitting the "controls" flag should render the video tag control-less, however a temporary bug or not, the flag is completely ignored at iphone/ipod devices, the controls are also meaningless, as the video always plays in full-screen, you are left with a huge chunk of space, whose only purpose is to suck all the click and touch events like a black hole
省略“控制”国旗应该呈现视频标签变差,但是一个临时错误与否,标志是完全忽略的iphone / ipod设备,控制也毫无意义,视频总是在全屏,你留下大量的空间,唯一的目的是为了吸收所有的点击和触摸事件像一个黑洞
The behavior is documented here: https://developer.apple.com/library/safari/documentation/AudioVideo/Conceptual/Using_HTML5_Audio_Video/Device-SpecificConsiderations/Device-SpecificConsiderations.html
行为在这里被记录下来:https://developer.apple.com/library/safari/documentation/audiovideo/conceptual/using_html5_audio_video/device - specifications.html
The solution is to set the video tag's width/height to 1/1 - position it with "fixed" to -10,-10 and manually trigger "play" with a replacement UI instead of an actual video
解决方案是将视频标记的宽度/高度设置为1/1——将其“固定”为-10,-10,并使用替换UI而不是实际的视频手动触发“播放”
This way the absurdities of the video tag are gone and since it always plays in fullscreen, the functionality is the same
这样,视频标签的荒谬就消失了,因为它总是在全屏播放,所以功能是一样的