Bug 200344 - HTMLVideoElement play promise never finishes
Summary: HTMLVideoElement play promise never finishes
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: Safari 12
Hardware: iPhone / iPad iOS 12
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks: 229433
  Show dependency treegraph
 
Reported: 2019-08-01 07:47 PDT by Nicholas
Modified: 2021-08-23 19:00 PDT (History)
5 users (show)

See Also:


Attachments
3 screenshots of the reproduced bug (457.61 KB, application/pdf)
2019-08-01 07:47 PDT, Nicholas
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nicholas 2019-08-01 07:47:33 PDT
Created attachment 375311 [details]
3 screenshots of the reproduced bug

Overview: Every now and then the promise returned by the HTMLVideoElements "play" method never resolves or rejects. This has happened on Safari iOS and Safari Desktop, but is more easily reproduced in the former.

Steps to Reproduce:

 1) Visit the following CodePen in an iOS device: https://codepen.io/nickcujoo/full/YmQRNW (This is the actual code to test: https://codepen.io/nickcujoo/pen/YmQRNW?editors=1010)
 2) Refresh multiple times.

Actual Results: At some point the text will remain as "Pending...".

Expected Results: The promise should either:
 a) resolve and have the text change to "Success"
 b) reject and have the text change to "Error: *error message*"


Devices:
 - MacBook Pro 15 inch 2019 with macOS Mojave Version 10.14.6
 - iPhone 7 Plus (Model MN4M2ZD/A) with iOS 12.0.1 (16A404)

Additional Information:
I've attached 3 screenshots (as a PDF) from 1 instance of this happening, to demonstrate that the promise remains without resolution or rejection indefinitely (refer to the time of the device).
Comment 3 Radar WebKit Bug Importer 2019-08-04 11:30:52 PDT
<rdar://problem/53920022>