Bug 207096 - drawImage doesn't paint the current frame of a video if the video is Vertical
Summary: drawImage doesn't paint the current frame of a video if the video is Vertical
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Canvas (show other bugs)
Version: Safari 13
Hardware: iPhone / iPad iOS 13
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-02-02 00:09 PST by Jae Won Jang
Modified: 2020-02-26 23:42 PST (History)
8 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jae Won Jang 2020-02-02 00:09:34 PST
Similar bug to https://bugs.webkit.org/show_bug.cgi?id=153588


canvas.getContext('2d').drawImage(video, ...) only paints the first frame of `video` when the video is vertical (portrait, for example width=1080 and height=1920 video taken from iphone)

The problem doesn't happen in OS X Safari, but happens only in iOS safari (or any webkit environments, like IOS Webview)

The problem happens regardless of the video's type, whether it's uploaded from the phone via file input or served via the server, the video size, etc.

Horizontal (Landscape) videos aren't having any problem, only vertical videos do.

The bug is very consistent for my development environment, happening every time.
Comment 1 Radar WebKit Bug Importer 2020-02-02 13:12:58 PST
<rdar://problem/59097228>