Bug 196344

Summary: REGRESSION (iOS 12.2): UIWebView mediaPlaybackRequiresUserAction fail
Product: WebKit Reporter: Jin <ljin.zq>
Component: WebKit APIAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: eric.carlson, gummibear17, jer.noble, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Other   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Demo none

Description Jin 2019-03-28 03:02:29 PDT
Created attachment 366160 [details]
Demo

I found a bug at iOS 12.2 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. 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>


3. 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  iPhone to try it.
Comment 1 Radar WebKit Bug Importer 2019-03-28 10:50:38 PDT
<rdar://problem/49385707>