samples-server icon indicating copy to clipboard operation
samples-server copied to clipboard

webrtc-capturestill: captured image upside down in Firefox browser for Andriod

Open ishakya opened this issue 8 years ago • 3 comments
trafficstars

i implemented capture still in my app, it works for other browsers except for firefox for android (version 54.0.1). The captured image is upside down for firefox for andriod.

ishakya avatar Jul 06 '17 10:07 ishakya

If you open the demo page at mdn-samples.mozilla.org using ff for android this issue can be reproduced.

BillTheGoat avatar Aug 23 '17 23:08 BillTheGoat

The captured image is upside down for firefox for andriod. sample picture: http://218.161.101.220/webcam/118706.jpg i need help,please~~~thanks!

airtung avatar Sep 01 '17 10:09 airtung

Ugly hack which may be useless in many cases. Insert the following in document <head>:

<script>if (navigator.userAgent.match(/mozilla.*mobile/i)){document.write('<style>img{ transform:rotateX(180deg) !important;}</style>');}</script>

If not working, check your user agent since Mozilla has changed it from time to time.

BillTheGoat avatar Sep 01 '17 23:09 BillTheGoat