Bug 200760 - OS 12.2 UIWebView mediaPlaybackRequiresUserAction fail in Lowpower Mode
Summary: OS 12.2 UIWebView mediaPlaybackRequiresUserAction fail in Lowpower Mode
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: Other
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2019-08-14 23:15 PDT by Jin
Modified: 2019-08-15 20:00 PDT (History)
3 users (show)

See Also:


Attachments
Demo (32.46 KB, application/x-zip-compressed)
2019-08-14 23:15 PDT, Jin
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jin 2019-08-14 23:15:16 PDT
Created attachment 376359 [details]
Demo

I found a bug at iOS 12.2 or newer version  with UIWebView.

1. create a UIWebView with  mediaPlaybackRequiresUserAction=YES;

self.webView.mediaPlaybackRequiresUserAction = YES;

It means, Video only can be play while User  click it.


2. Make my iPhone to "Low Power Mode"


3. Open a web with the UIWebView

I write a Video tag:

<video controls id="videoo" src="http://image.uc.cn/s/uae/g/0n/iosvideo/video.mp4"></video>


4. When I click the Video's default Play Button, it can not be play.


It works well at Safari and iOS 12.


You can build the Demo to a iOS 12.2 or newer version  iPhone to try it.
Comment 1 Radar WebKit Bug Importer 2019-08-15 20:00:23 PDT
<rdar://problem/54375209>