Here write custom directory title
iOS In H5 play audio and video page
1, iOS end webView the default player for audio and video to full-screen playback
//如果需要在浏览器内部播放则需要如下 配置
webview.allowsInlineMediaPlayback = YES;
2, iOS AutoPlay end webView
webview.mediaPlaybackRequiresUserAction = NO;
3, the impact on the power-saving mode H5 audio and video playback
当设备处于低电量模式的时候,音视频自动播放设置就会不能生效;
它会影响:UIWebView 、WKWebView 、Safari的音视频播放;
4, low battery mode
In order to solve the problem of battery life, Apple added in iOS 9 low battery mode for the iPhone. In this mode, the system by disabling some features such as automatic e-mail acquisition, background refresh, Hey Siri, etc., to achieve the purpose of reducing energy consumption.
5, detection of a low battery mode
In iOS 9, we can easily detect if a user opened a low-power mode, NSProcessInfo provided with respect to the property.
if ([[NSProcessInfo processInfo] isLowPowerModeEnabled])
{
// 做低电量模式下该做的事
}