HTML5 iOS iPad 上未显示视频播放按钮
HTML5 video play button not showing on iOS iPad
我有一个 HTML5 视频,它有一个由 Safari 在 iPhone 上呈现的播放按钮,但我不明白为什么它没有出现在 iPad 上。
我看了一下 Streamable 和 Gfycat,它们的 html5 视频上都有一个播放按钮。
我不想渲染视频的控件属性。
我用这个脚本来展示它。
if((navigator.userAgent.match(/iPad/i)) && (navigator.userAgent.match(/iPad/i)!= null)){
$('video').prop("controls",true);
}
我有一个 HTML5 视频,它有一个由 Safari 在 iPhone 上呈现的播放按钮,但我不明白为什么它没有出现在 iPad 上。
我看了一下 Streamable 和 Gfycat,它们的 html5 视频上都有一个播放按钮。
我不想渲染视频的控件属性。
我用这个脚本来展示它。
if((navigator.userAgent.match(/iPad/i)) && (navigator.userAgent.match(/iPad/i)!= null)){
$('video').prop("controls",true);
}