Bug 196344 - REGRESSION (iOS 12.2): UIWebView mediaPlaybackRequiresUserAction fail
Summary: REGRESSION (iOS 12.2): UIWebView mediaPlaybackRequiresUserAction fail
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit API (show other bugs)
Version: Other
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2019-03-28 03:02 PDT by Jin
Modified: 2019-04-20 22:13 PDT (History)
4 users (show)

See Also:


Attachments
Demo (32.46 KB, application/x-zip-compressed)
2019-03-28 03:02 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-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>