Bug 165057 - Wrong Orientation of the screenshot snapped to Canvas from HTML5 video
Summary: Wrong Orientation of the screenshot snapped to Canvas from HTML5 video
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Canvas (show other bugs)
Version: Safari 10
Hardware: Mac macOS 10.12
: P2 Major
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2016-11-24 00:54 PST by longman
Modified: 2016-12-01 12:46 PST (History)
5 users (show)

See Also:


Attachments
screenshot of the jsfiddle-sources (2.84 MB, image/png)
2016-11-24 00:54 PST, longman
no flags Details
test video (3.36 MB, video/mp4)
2016-12-01 12:46 PST, Dean Jackson
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description longman 2016-11-24 00:54:39 PST
Created attachment 295397 [details]
screenshot of the jsfiddle-sources

Steps to reproduce:

example sources: http://jsfiddle.net/longman/umjkv6eg/
description:
1. I have video with Rotation 180-degree. Safari's player shows it with correct automatically fixed Rotation (as 0-degree)
2. i try to take screenshot from it to HTML5 Canvas




Actual results:

i got screenshot with different Rotation than in video player, so:
1. in player i see correct automatically fixed 0-degree Rotation
2. in canvas i see screenshot with WRONG 180-degree Rotation (upside down)


Expected results:

i must to see in canvas screenshot with the same Rotation, which i see in video player (in my example both must be 0-degree). 

FYI. you can run jsfiddle-example in Chrome and it works correctly, Firefox works as Safari in wrong way. please make behavior the same as in Chrome, it is more logically applicated. thanks!
Comment 1 Radar WebKit Bug Importer 2016-12-01 12:35:22 PST
<rdar://problem/29464616>
Comment 2 Dean Jackson 2016-12-01 12:46:48 PST
Created attachment 295879 [details]
test video